Question: Write a Python program that can simulate a simple decimal extractor, using the console as the exclusive input and output device. The program should prompt
Write a Python program that can simulate a simple decimal extractor, using the console as the exclusive input and output device. The program should prompt the user Enter a number: for input. Each input to the calculator should be a number like 12.34 or 456. After each such input, you should output to the Python console the decimal portion of the input value. For instance, 12.34 should return 0.34 and 456 should return 0. After each input, the output value should be printed and should prompt the user for input again and should only end if the user enters the string end as input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
