Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started