Can someone please help me with the Lost Viking Code Challenge? I’m not sure how to make the character continuously go south. Here is the code I have written.
while steps <= 35: # Take the next step: self.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH) # Increment steps and sideSteps as appropriate, taking into account the special rules. steps += 1 if steps% (SWITCH+1) == 0: self.say("Reached SWITCH point") sideSteps -= 1 else: sideSteps += 1