# Day 3
# _____ __ __ _ _ _
# \_ \/ _| / _\ |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___
# / /\/ |_ \ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __|
# /\/ /_ | _| _\ \ || (_| | || __/ | | | | | __/ | | | |_\__ \
# \____/ |_| \__/\__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/
'''
if Statments
if value {comparison operator} other value:
<---> operation
Elif (attched to if Statment)
elif {comparison operator} other value:
<---> operation
Else (if none of the other ifs are meet)
else {comparison operator} other value:
<--> operation
comparison operators
== (equal)
=! (not equal)
> (more than)
>= (more than or equal)
< (less than)
<= (less than or equal)
there are also Logical operators
and (requires another requirement)
or (requires either requirment)
if x == 3 and y == 3:
<---> operation
'''
# Excersises
# 1
# _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
print("1.")
# ask for three numbers
x = int(input("give me a number: "))
y = int(input("give me a different number: "))
z = int(input("give me a different number: "))
print("")
# check foe the biggest
if x > y and x > z:
print(x, "is the largest")
elif y > x and y > z:
print(y, "is the largest")
elif z > x and z > y:
print(z, "is the largest")
else: # if there are multiple biggest
print("they got to be different!")
# check for the smallest
if x < y and x < z:
print(x, "is the smallest number" )
elif y < x and y < z:
print(y, "is the smallest number")
elif z < x and z < y:
print(z, "is the smallest number")
else: # if there are multiple smallest
print("they got to be different!")
# 2
# _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
print("\n\n2.")
# ask for income
income = int(input("what is your income: "))
# check amount and apply tax
if income <= 10000:
print("after tax, your income is", income-(income*0.13))
elif income <= 50000:
print("after tax, your income is", income-(income*0.25))
else:
print("after tax, your income is", income-(income*0.375))
# 3
# _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
print("\n\n3.")
# store password
password = "bear creek"
# ask for password
suppassword = input("Enter the Password: ")
# check if password is correct
if suppassword.casefold() == password:
print("the password is correct")
else:
print("the password is incorrect")
# 4
# _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
print("\n\n4. ")
# ask if thet are an adult
age = int(input("what is your age:"))
# check if they are an adult
if age >= 18:
print("you are an adult")
else:
print("you are not an adult")