Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # STUPID CALC
- creator_name = "Aitor"
- print(f"\nSTUPID CALC made by {creator_name}\n")
- print("<1> ENHANCE")
- print("<2> ADD")
- print("<3> SUBSTRACT")
- print("<4> MULTIPLY")
- print("<5> DIVIDE")
- answer = input("\nChoose option:\n")
- def input_numbers():
- print("Introduce el primer valor:")
- value1 = float(input())
- print("Introduce el segundo valor:")
- value2 = float(input())
- return (value1, value2)
- if answer == "1":
- value1, value2 = input_numbers()
- result = value1 ** value2
- print(result)
- if answer == "2":
- value1, value2 = input_numbers()
- print(value1 + value2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement