Question: Write code that performs the following input operations: -Read an int from the keyboard and assign it to a variable named k. (Do not print

Write code that performs the following input operations:

-Read an int from the keyboard and assign it to a variable named k. (Do not print a prompt. Use the input() function without a prompt-string to read the input.)

-Read a float from the keyboard and assign it to a variable named d. (Do not print a prompt. Use the input() function without a prompt-stringto read the input.)

-Read a string from the keyboard and assign it to a variable named s. (Do not print a prompt. Use the input() function without a prompt-string to read the input.)

-After you have performed the input, on one line, print these variables in reverse order (s followed by d, followed by k) with exactly one space in between each. On a second line, print them in the original order (k followed by d, followed by s) with one space in between them.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!