aboutsummaryrefslogtreecommitdiff
path: root/Python/Beginner training/001 GoSkiing.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/Beginner training/001 GoSkiing.py')
-rw-r--r--Python/Beginner training/001 GoSkiing.py12
1 files changed, 12 insertions, 0 deletions
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