Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Code to find maximum number using if else

print("Find the maximum Number")
print ("==========")
def FindMaximum(n1,n2,n3):
    if n1>n2:
        if n1>n3:
            maxNumber=n1
        else:
            maxNumber=n3
    elif n2>n3:
        maxNumber=n2
    else:
        maxNumber=n3
    return maxNumber
def main():
    n1 = int(input("Enter first number: "))
    n2 = int(input("Enter Second numer: "))
    n3 = int(input("Enter Third number: "))
    
    maximum  = FindMaximum(n1,n2,n3)
    print("Maximum number is", maximum)
    
main()
Comment

PREVIOUS NEXT
Code Example
Python :: how to get class names in predict_proba 
Python :: droping columns 
Python :: how to create dict key with list default -2 
Python :: cubic interpolation python 
Python :: ascii julius caesar python encryption 
Python :: install Social Auth App Flask 
Python :: for loop for many integers in list 
Python :: python combine images horizontally next to each other 
Python :: boto3 get_item 
Python :: velocity field gradient 
Python :: disable chrome console errors selenium 
Python :: cartopy indicate lat lon 
Python :: attach short list to pandas dataframe with filler 
Python :: Broadcasting with NumPy Arrays Example 
Python :: intervalle de temps python 
Python :: pypi autopep8 
Python :: Python NumPy asfortranarray Function Syntax 
Python :: Python NumPy column_stack Function Example with 2d array 
Python :: Python NumPy tile Function Example Working with 1D array 
Python :: mypy run on single file 
Python :: pyqt log widget thread safe 
Python :: make all subplots same height 
Python :: python subprocess redirect a file 
Python :: turn dictionary into flat list 
Python :: tkintre sub windows 
Python :: How to Preprocess for categorical data 
Python :: python how to convert each word of each row to numeric value of a dataframe 
Python :: python code sample submission of codeforces 
Python :: ignore exception decorator 
Python :: dict python inpmenttion 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =