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


Bill

Thu 08 January 2026
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 More

Control Flow

Thu 08 January 2026
age = 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 More

Operator

Thu 08 January 2026
a = 10
b = 11

print(a+b)
#same goes for substraction
21


Score: 0

Category: maths

Read More

Temp

Thu 08 January 2026
a = 10
b = 11

temp = a
a = b
b = temp 
print(a,b)
11 10
print(a)
11


Score: 0

Category: maths

Read More
Page 1 of 1