Question
Your program should conform to the prompts and behavior displayed above. Include blank lines in the output as shown. Indent the output for the categorization
Your program should conform to the prompts and behavior displayed above. Include blank lines in the output as shown. Indent the output for the categorization by three spaces as shown. When submitted, your program will be tested using data other than the examples shown. This was just a sample run. Make sure your program follows all other requirements in this specification. Note that the program should NOT process the sentinel value. That is, don't try to determine if the sentinel value is pronic or perfect.
How do you write code for this in Python?
Enter a positive integer (or 1 to quit) : 6 The number 6: is pronic is perfect Enter a positive integer (or 1 to quit) : 7 The number 7: is NOT pronic is NOT perfect Enter a positive integer (or 1 to quit) : 12 The number 12 : is pronic is NOT perfect Enter a positive integer (or 1 to quit) : 28 The number 28 : is NOT pronic is perfect Enter a positive integer (or 1 to quit) : 100 That number is not positive. Please reenter: 4 That number is not positive. Please reenter: 30 The number 30 : is pronic is NOT perfect Enter a positive integer (or 1 to quit) : 1Step 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