Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 1 when the following for loop is complete, how many spaces wi…

Question

question: 1
when the following for loop is complete, how many spaces will tracy have moved?
for i in range(5):
forward(10)
50 spaces
60 spaces
10 spaces
5 spaces

Explanation:

Step1: Entender el bucle for

El bucle for i in range(5) se ejecutará 5 veces.

Step2: Calcular el movimiento total

Cada iteración mueve 10 espacios. Entonces, el movimiento total es \( 5\times10 \).

$$5\times10 = 50$$

Answer:

50 spaces