Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
init_money = float(input()) gender = input() age = int(input()) sport = input() price = 0 if gender == "m": if sport == "Gym": price = 42 elif sport == "Boxing": price = 41 elif sport == "Yoga": price = 45 elif sport == "Zumba": price = 34 elif sport == "Dances": price = 51 elif sport == "Pilates": price = 39 elif gender == "f": if sport == "Gym": price = 35 elif sport == "Boxing": price = 37 elif sport == "Yoga": price = 42 elif sport == "Zumba": price = 31 elif sport == "Dances": price = 53 elif sport == "Pilates": price = 37 if age <= 19: price = price * 0.80 diff = abs(init_money - price) if init_money >= price: print(f"You purchased a 1 month pass for Gym.") else: print(f"You don't have enough money! You need ${diff:.2f} more.")
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)