Question: Write a Python program that asks users to input a 6-digit integer. The program will then separate the integer into individual digits. Print the digits
Write a Python program that asks users to input a 6-digit integer. The program will then separate the integer into individual digits. Print the digits out and separate them by the hyphen ( - ) character. For example: Please input a 6-digit intefer: 123456 1-2-3-4-5-6 Please use % and // operators to complete this task
Step by Step Solution
There are 3 Steps involved in it
The algorithm for the program is Prompt user for input Validate if the input is ... View full answer
Get step-by-step solutions from verified subject matter experts
