Skip to content

Instantly share code, notes, and snippets.

View jocheilem's full-sized avatar
🎯
Focusing

Jocheilem Lau jocheilem

🎯
Focusing
View GitHub Profile
print("Welcome to the calculator!")
print("Note: decimals will be rounded to the nearest 2 decimal places")
def calculator():
max_limit = 10 ** 15
max_exponent = 100
while True:
a = input("Please enter the first number: ").strip()
if a == "":
print("Warning: You entered an empty value. Please enter a valid number.")
print("Welcome to the calculator!")
print("Note: decimals will be rounded to the nearest 2 decimal places")
def calculator():
max_limit = 10 ** 15
max_exponent = 100
while True:
a = input("Please enter the first number: ").strip()
if a == "":
print("Warning: You entered an empty value. Please enter a valid number.")