프로그래밍/파이썬
파이썬 매일코딩 4장
훨훨날아
2022. 8. 5. 23:24
4-2
식당주문 프로그램 만들기
order: sandwich
sandwich cost 10, total is 10
order: tea
tea cost 7, totla is 17
order: elephant
sorry we are fresh out of elephant today
order: ender
your total is 17
딕셔너리 내부에 키가 있는지 확인 할 때는 in을 사용한다.
반응형