From a0addea2b7bbdac244420ec917c0f3c14c4c8831 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 30 Jun 2019 15:05:38 +0300 Subject: Added some of the stuff I have done while learning Python --- Python/Beginner training/001 GoSkiing.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Python/Beginner training/001 GoSkiing.py (limited to 'Python/Beginner training/001 GoSkiing.py') diff --git a/Python/Beginner training/001 GoSkiing.py b/Python/Beginner training/001 GoSkiing.py new file mode 100644 index 0000000..28f6f33 --- /dev/null +++ b/Python/Beginner training/001 GoSkiing.py @@ -0,0 +1,12 @@ +import sys +import os + +skier_n = int(input('Type number of skiers: ')) +jacket_n_per_person = int(input('Type number of jackets per person: ')) +helmet_n_per_person = int(input('Type number of helmets per person: ')) +shoe_set_n_per_person = int(input('Type number of shoes per person: ')) + +total_per_person = (jacket_n_per_person * 120) + (helmet_n_per_person * 75) + (shoe_set_n_per_person * 299.9) +total_price = total_per_person * skier_n + +print('Total price for all skiers: ', round(total_price + total_price * 0.2, 2)) \ No newline at end of file -- cgit v1.2.3