Shorthand code rule



'''
Created on May 21, 2021

@author: Admin
'''
# If-expression if(Condition) else else-expression
# if condition:
#    if-expression
# else:
#    else-expression

c = int(input("enter 1:"))
print(" c is",c )
d = int(input("enter 2:"))
print("D is ",d )
# shorthand
print("C grater") if c>d else print(" D grater")
    

      

Comments