Example -
let we have a two number
a=34
b=56
so we can easily judge that 56 is maximum in both of them
Program to find out the maximum number out of two-
a=int(input("Enter first numbern"))
b=int(input("Enter second numbern"))
#fisrt way
if a>b:
print(max(b)+" is maximum")
#second way
print(str(max(a,b))+" is maximum")
Enter first number
6
Enter second number
2
6 is maximum
6 is maximum
program to do this in one line -
print(str(max(list(map(int,input("Enter number in list").split()))))+" is maximum")
output -
Enter two value
56 78
78 is maximum