티스토리 뷰
# comment monty = True python = 1.234 monty_python = python ** 2 # Assign the variable total on line 8! meal = 44.50 tax = 6.75 / 100 tip = 15.0 / 100 meal = meal + meal * tax total = meal + meal * tip print("%.2f" % total)
'IT > Python: Codecademy' 카테고리의 다른 글
6 Student Becomes the Teacher (0) | 2018.02.24 |
---|---|
5 Lists & Dictionaries (0) | 2018.02.22 |
Python 4 Functions (0) | 2018.02.21 |
Python 3 Conditionals and Control Flow (0) | 2018.02.21 |
Python 2 Strings and Console Output (0) | 2018.02.18 |
댓글