Question: Write a program that asks the user to enter an integer, then prints the number of digits in the integer. You should not use the
Write a program that asks the user to enter an integer, then prints the number of digits in the integer. You should not use the len() command/function to get the length of the string. Hint: think about counting how many times you can move the decimal point (i.e., divide by 10).
Sample Output:
Enter an integer: 1234321
There are 7 digits in that number.
use Python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
