#coffee.py
coffee=10
while true:
money=int(input("돈을 넣어 주세요:"))
if money==300:
print("커피를 줍니다.")
coffee=coffee-1
elif money>300:
print("거스름돈 %d를 주고 커피를 줍니다."%(money-300)
coffee=coffee-1
else:
print("돈을 다시 돌려주고 커피를 주지 않습니다.")
print("남은 커피의 양은 %d 개 입니다."%coffee)
in not coffee:
print("커피가 다 떨어졌습니다. 판매를 중지합니다.")
break
실행 중 오류가 발생했습니다.
File "/solution.py", line 14
coffee=coffee-1
^
SyntaxError: invalid syntax
coffee=coffee-1
에서 오류가 뜨는데 왜 뜨는 건지 질문드립니당.