[python] while문

덴장·2024년 3월 4일

python

목록 보기
11/30

#while
customer ="토르"
index = 5
while index >=1:
print("{0}, 커피가 준비되었습니다. {1} 번 남았어요.".format(customer , index))
index -= 1
if index == 0:
print("{0}".format("처분"))

person = "Unknown"
person = input("이름이 어떻게 되세요?")
while person != customer :
print("{0}, 커피가 준비되었습니다.".format(customer))

profile
개발자

0개의 댓글