write a program to print smallest digit of given number
neha1234532:
in class there is programming
Answers
Answered by
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 !
Similar questions
Hindi,
7 months ago
English,
7 months ago
English,
7 months ago
Hindi,
1 year ago
Social Sciences,
1 year ago