diff options
| author | Syndamia <kami02882@gmail.com> | 2019-06-30 15:05:38 +0300 |
|---|---|---|
| committer | Syndamia <kami02882@gmail.com> | 2019-06-30 15:05:38 +0300 |
| commit | a0addea2b7bbdac244420ec917c0f3c14c4c8831 (patch) | |
| tree | a05310b0033f995dfd31b5795e7675aa382a18f3 /Python/Beginner training/001 GoSkiing.py | |
| parent | 0c7164435abda2e497957e195e6653f94f20135d (diff) | |
| download | Self-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.tar Self-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.tar.gz Self-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.zip | |
Added some of the stuff I have done while learning Python
Diffstat (limited to 'Python/Beginner training/001 GoSkiing.py')
| -rw-r--r-- | Python/Beginner training/001 GoSkiing.py | 12 |
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 |
