Basic Math
Thu 08 January 2026
a = 10
b = 11
temp = a
a = b
b = temp
print(a,b)
11 10
Score: 0
Category: maths
a = 10
b = 11
temp = a
a = b
b = temp
print(a,b)
11 10
Score: 0
Category: maths
print("Welcome to the Tip Calculator!")
bill = float(input("What was the total bill? $"))
tip = int(input("What percentage tip would you like to give? 10, 12, or 15? "))
people = int(input("How many people to split the bill? "))
tip_as_percent = tip / 100
total_tip_amount = bill * tip_as_percent
total_bill = bill + total_tip_amount
bill_per_person = total_bill …Category: maths
Read Moreage = int(input(10))
if age >= 10:
print("you are allowed")
else:
print("go home ")
10 1
go home
print("hello")
Score: 0
Category: maths
Read Morea = 10
b = 11
print(a+b)
#same goes for substraction
21
Score: 0
Category: maths
Read Morea = 10
b = 11
temp = a
a = b
b = temp
print(a,b)
11 10
print(a)
11
Score: 0
Category: maths
Read More