<reponame>yeesnn24/python-cheatsheet
age = 18
if age >= 18:
  print("nguoi lon")
else:
  print("tre con")

# kiem tra diem, neu p < 5 = yeu, 5 -> 6 = tb, 6 -> 8  = kha, > 8 = gioi

mark = 5
if mark < 5:
  print("yeu")
elif mark >= 5 and mark < 6:
  print("tb") 
elif mark >= 6 and mark < 8:
  print("kha")
elif mark >= 8:
  print("gioi")

# > 22 age: 1 55 co the = 45, < 22 45

age = 25
card = False

if age > 22:
  if card == True:
    print("ticket=45")
  else:
    print("ticket=55")
else:
  print('ticket=45')
age = 18
if age >= 18:
  print("nguoi lon")
else:
  print("tre con")

# kiem tra diem, neu p < 5 = yeu, 5 -> 6 = tb, 6 -> 8  = kha, > 8 = gioi

mark = 5
if mark < 5:
  print("yeu")
elif mark >= 5 and mark < 6:
  print("tb") 
elif mark >= 6 and mark < 8:
  print("kha")
elif mark >= 8:
  print("gioi")

# > 22 age: 1 55 co the = 45, < 22 45

age = 25
card = False

if age > 22:
  if card == True:
    print("ticket=45")
  else:
    print("ticket=55")
else:
  print('ticket=45')
# kiem tra diem, neu p < 5 = yeu, 5 -> 6 = tb, 6 -> 8  = kha, > 8 = gioi # > 22 age: 1 55 co the = 45, < 22 45