Saturday, December 26, 2020

 def turn_right():

    turn_left()

    turn_left()

    turn_left()

    

def jump():

    turn_left()

    while wall_on_right():

          move()

    turn_right()

    move()

    turn_right()

    while front_is_clear():

              move()

    turn_left()

while not at_goal():

    if wall_in_front():

       jump()

    else:

        move()

Saturday, December 5, 2020

love calculator

print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
# 🚨 Don't change the code above 👆

#First *fork* your copy. Then copy-paste your code below this line 👇
#Finally click "Run" to execute the tests
t = (name1.count('t') + name2.count('t'))
r = (name1.count('r') + name2.count('r'))
u = (name1.count('u') + name2.count('u'))
e = (name1.count('e') + name2.count('e'))
total = str(t + r + u + e)

l = (name1.count('l') + name2.count('l'))
o = (name1.count('o') + name2.count('o'))
v = (name1.count('v') + name2.count('v'))
e = (name1.count('e') + name2.count('e'))
total1 = str(l + o + v + e)

score = int(total + total1)

if score <= 10 or score >= 90:
print(f'your score is {score} you are like coke and mentos')
elif score >= 40 and score <= 50:
print(f'your score is {score} you are alright together!')
else:
print(f'your score is {score}')