Computer Science, asked by arohanaswagger, 1 month ago

Write a python function to print the number of the digits in number.The function digit ( ) will take
the number as parameter and the number of digits one, two three or more than three digits.

Answers

Answered by ARYANKATE
0

Answer:

bhai define question proper

okkkkkkk then i will answer

Answered by divyanginamya117
0

Answer:

def digit(number):

count = 0

while number != 0:

count += 1

number //= 10

if count == 1:

print("The number has one digit.")

elif count == 2:

print("The number has two digits.")

elif count == 3:

print("The number has three digits.")

else:

print("The number has more than three digits.")

Explanation:

now try calling the desired value using this function

Similar questions