# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

a = 33
b = 200
if b>a:
    print("b is greater than a")

a = 33
b = 33
if b >a:
    print("b is greater than a")
elif a==b:
    print("a and b are equal")

a = 34
b = 33
if b >a:
    print("b is greater than a")
elif a==b:
    print("a and b are equal")
else:
    print("a is greater than b")

a = 2 
b = 330
print("A") if a > b else print("B")

a = 330
b = 331
print("A") if a>b else print("=") if a == b else print("B")

a = 200
b = 33
c = 500
if a > b or a > c:
  print("At least one of the conditions is True")

# +
x = 41

if x>10:
    print("Above ten")
    if x > 20:
        print("and also above 20!")
        if x > 30:
            print("and also above 30!")
            if x > 40:
                print("and also above 40!")
                if x < 50:
                    print("but not above 50")
# -

a = 200
b = 33
if b >a:
    print("b is greater than a")
else:
    print("b is not greater than a")



StarcoderdataJupyterScriptsDedupFiltered