Question: 2.2: Write a program in python that does the following: a. Prompt the user to enter a string or a number. b. Print that input

2.2: Write a program in python that does the following: a. Prompt the user to enter a string or a number. b. Print that input 3 times, as (1) a string, (2) an integer, and (3) a floatingpoint value. o Based on the user input, this program will crash sometimes! c. What data types can be input that will print without generating any errors? o Answer this question at the end of your code by using a docscring (triple quote) comment and explain why for your answer makes sense for all three data types listed in part b.

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!