password_correct = False
if password_correct:
print("Here is your money")
else :
print("Worng password")
같다 ==, 다르다 !=, =은 값을 나타낼 때, ==은 값을 비교할 때
age = int(input("how old are you?"))
if age < 18:
print("You can't drink.")
elif age >= 18 and age <= 35:
print("You drink bear!")
else:
print("go ahead")
from random import randint, uniform
user_choice = int(input("Choose number."))
pc_choice = randint(1, 50)
if user_choice == pc_choice:
print("You won!")
elif user_choice > pc_choice:
print("Lower!", pc_choice)
elif user_choice < pc_choice:
print("Higher!", pc_choice)