write a program that inputs an integer in range 0 - 999 and then prints if the integer entered is 1/2/3 digit number
Answers
Answered by
3
Answer:
a=int(input("Enter a number: "))
if len(a)=1:
print(a)
elif len(a)=2:
print(a)
elif len(a)=3:
print(a)
You could put a else statement after this if you don't want an error:
else:
print("Not a 1, 2 or 3 digit number")
Please mark as brainliest!
Answered by
0
Answer:
come
vti-vmdb-khj
Explanation:
friendship
Similar questions
India Languages,
27 days ago
Math,
27 days ago
India Languages,
27 days ago
Accountancy,
1 month ago
Chemistry,
8 months ago