Question
in pythonn Write a program that reads a number between 10,000 and 99,999 from the user, where the user enters a comma in the input.
in pythonn
Write a program that reads a number between 10,000 and 99,999 from the user, where the user enters a comma in the input. Your program will extract the number on the left of the comma and add to it one. It also extracts the number on the right side of the comma and subtract from it one. It then displays the result as shown below.
Sample run1: Enter a number between 10,000 and 99,999: 23,589 left number plus one = 24 right number minus one = 588
Sample run2: Enter a number between 10,000 and 99,999: 52,100 left number plus one = 53 right number minus one = 99
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