Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

enter three numbers and find smallest number in python

a = int(input('Enter first number  : '))
b = int(input('Enter second number : '))
c = int(input('Enter third number  : '))

smallest = 0

if a < b and a < c :
    smallest = a
elif b < c :
    smallest = b
else :
    smallest = c

print(smallest, "is the smallest of three numbers.")
Comment

PREVIOUS NEXT
Code Example
Python :: database setup in django aws 
Python :: aws ses service python example 
Python :: rename all files in a folder and subfolder 
Python :: csv python 
Python :: how to write def 
Python :: python is not operator 
Python :: await not working python 
Python :: data structures in python 
Python :: how to detect if a key was press down 
Python :: python using type and name advanced 
Python :: python using boolean 
Python :: Dizideki en son elemani alma 
Python :: online python pseudo code writer python 
Python :: travis deployment script for django applications to heroku 
Python :: how to minimisze python console 
Python :: pyfiglet not coming up cmd 
Python :: python + credit-german.csv + class 
Python :: torch split classes stratified 
Python :: how to find left top width and height on an image using python 
Python :: fredo illos 
Python :: pyqt message box set information text 
Python :: mutliple inxed conditions py 
Python :: dont print pip jupyter 
Python :: add Firefox extensions in Selenium 4 
Python :: numpy addition operation using numpy functions 
Python :: how to make a timer in pyothn 
Python :: python check if array alternating 
Python :: Connection to Python debugger failed: Interrupted function call: accept failed 
Python :: how to open local software using python 
Python :: how to reference second line of matrix in python 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =