[SOLVED] Help with the level "Don't rush, Be Quiet"

That’s alright! (20 chars)

1 Like

Hi @Anna ~ I changed time = hero.time to time = hero.now() , however it still didn’t work :confused:… here’s my code:


# This function returns a value from 0 to 30 (0 <= n < 30)
def mod30(n):
    if n >= 30:
        return n - 30
    else:
        return n

# This function should return a value from 0 to 40 (0 <= n < 40)
def mod40(n):
    # Use an if-statement to return the correct value.
    if n >= 40:
        return n - 40
    else:
        return n

# You don't need to change the following code:
while True:
    time = hero.now()
    x = mod30(time) + 25
    y = mod40(time) + 10
    hero.moveXY(25, 10)

For @AnSeDra , this is my equipment:
image
Rachel :slightly_smiling_face:

@Rachel699, your last line says:

hero.moveXY(25,10)

when it should be the variables that you defined earlier in the while loop. You aren’t moving otherwise, except to the coordinate (25,10)

Hope that helps!

-@Anna

2 Likes

Hey @Anna! Thanks for your help :blush:~ I got through this level already, but I really appreciate your help :heart:.
Thanks a bunch :monkey_face:~
~ Rachel

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.