• Performing Operations; Usage of Variables







____________________________________________________________________________________________________________________________________________


Performing Operations; Usage of Variables

  • Variables can be used as any other constant data would be

  • # define your variables
    x = 24
    y = 12
    
    # print statements using operations, just as you would for any other data
    print(24+12)
    print(x+y)
    print(x*y)
    print(x/y)
    
    36
    36
    288
    2.0