Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
