money = 100
apple_price = 100
if money > apple_price:
print('사과를 살 수 있습니다')
elif money = apple_price:
print("사과를 살 수 있지만 소지금이 0가 됩니다")
else:
print('금액이 부족합니다')
빨간 부분 뭐가 잘못 되었어?
money = 100
apple_price = 100
if money > apple_price:
print('사과를 살 수 있습니다')
elif money = apple_price:
print("사과를 살 수 있지만 소지금이 0가 됩니다")
else:
print('금액이 부족합니다')
빨간 부분 뭐가 잘못 되었어?
제발 if-else 할때 문서 제대로 안볼래?
교양과목임?
등호 두개넣어라
==
땡큐 ^^