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
def welcome(): return '''$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ Welcome to Georgi Horozov Calculator $ $ Please select an option $ $ continue $ $ $ $ $ $ Author: Georgi Horozov $ $ Sofia, Bulgaria 2023 $ $ $ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n''' def add(n1, n2): return n1 + n2 def substract(n1, n2): return n1 - n2 def multipyl(n1, n2): return n1 * n2 def devide(n1, n2): return n1 / n2 print(welcome()) while True: choice = input("1. Add\n2. Substract\n3. Multiply\n4. Devide\n5. Exit\nEnter your choice: ") if choice == "5": print("Thank you for using Georgi Horozov Calculator") break n1 = float(input("Enter first number: ")) n2 = float(input("Enter second number: ")) if choice == "1": print("The sum is: ", add(n1, n2), "\n") elif choice == "2": print("The substract is: ", substract(n1, n2), "\n") elif choice == "3": print("The multiply is: ", multiply(n1, n2), "\n") elif choice == "4": print("The devide is: ", devide(n1, n2), "\n") else: print("Wrong choice!!!")
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)