条件分岐
#if
score = int(input(“Score? “))
比較演算子
if score > 80:
print(“OK!”)
print(“Good Job”)
else:
print(“NG!”)
print(“Nice try!”)
print(“End of program …”)
score = int(input(“Score? “))
if score > 80:
print(“OK!”)
print(“Good Job”)
else:
print(“NG!”)
print(“Nice try!”)
print(“End of program …”)