Computer Science, asked by neha1234532, 1 year ago

write a program to print smallest digit of given number


neha1234532: in class there is programming
neha1234532: no

Answers

Answered by anujcoder000
4

Python program to print smallest digit from user input 'number' :


#1- take input from user:

>>>number = input("Enter number:")


#2- convert input no. into string and find smallest number value character using Python min() function:

>>>b=min(str(number))


#3- Printing this smallest number .

>>>print b


Hope this short but powerful and useful code helps :) .

Please give a thanks, if it helped !



neha1234532: thankyou so much
Similar questions