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
budget = float(input()) season = input() type_of_stay = "" place_of_stay = "" region = "" total = 0 if budget > 1000: region = "Europe" place_of_stay = "Hotel" total = budget * 0.9 else: if season == "summer": place_of_stay = "Camp" if budget <= 100: region = "Bulgaria" total = budget * 0.3 else: region = "Balkans" total = budget * 0.4 else: place_of_stay = "Hotel" if budget <= 100: region = "Bulgaria" total = budget * 0.7 else: region = "Balkans" total = budget * 0.8 print(f"Somewhere in {region}") print(f"{place_of_stay} - {total:.2f}")
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)