writa a program to enter any number upto 4 digit chek whether it is 1 digit number or 2 dight number or 3 digit number or 4 digit number. pls answer fast
Answers
Answered by
0
Explanation:
BG QN LSA coattails naga ma BSA and jk wall JD cums
Answered by
1
def find_len(n):
if len(n) == 1:
return "1 digit"
if len(n) == 2:
return "2 digits"
if len(n) == 3:
return "3 digits"
if len(n) == 4:
return "4 digits"
return "more than 4 digits"
n = input("enter a num: ")
print(find_len(n))
Similar questions
English,
2 months ago
Economy,
2 months ago
Social Sciences,
5 months ago
Business Studies,
11 months ago
Physics,
11 months ago