Answered step by step
Verified Expert Solution
Link Copied!

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:
s=?' Ruth Bader Ginsburg'
c = 'Admiral Grace Hopper'
print(s, 'was a famous lawyer and Supreme Court Justice.')
print(c, '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 fun_with_variables and add code to the code above so outputs those two lines followed by:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

Assessment of skills and interests.

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago