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
Get step-by-step solutions from verified subject matter experts
