Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Slightly larger function using variables Consider the following Python code: s = ? ' Ruth Bader Ginsburg' c = 'Admiral Grace Hopper' print ( s
Slightly larger function using variables
Consider the following Python code:
Ruth Bader Ginsburg'
c 'Admiral Grace Hopper'
prints 'was a famous lawyer and Supreme Court Justice.
printc 'was a famous computer scientist.
We suggest you type in the above Python code into the Python playground and run it You will see that it outputs tw the print statements first prints the value stored a variable followed by the descriptive message.
Your program is required to to be a function that store each of the names in a variable and use those variables in th code above. Failure to use the variables will result in a lower score for your assignment.
Write code that puts the above code inside a function called funwithvariables and add code to the code above so outputs those two lines followed by:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started