Computer Science, asked by Anonymous, 1 month ago

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 Anisha5119
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 prakhargautam
0

Answer:

come

vti-vmdb-khj

Explanation:

friendship

Similar questions