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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!