Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

your python program has this code. for n = 1 to 10: position = position…

Question

your python program has this code.
for n = 1 to 10:
position = position + 10 # move the position 10 steps.
direction = direction + 90 # change the direction by 90 degrees.
you decided to write your program in a block programming language.
what type of block do you need to start?
event
motion
voice and graphics
control

Explanation:

Brief Explanations

In block programming languages, when converting a loop (in this case, a for loop in Python), the starting block type is related to control structures. Control blocks are used to manage the flow of a program, including loops. The for loop in Python is a control - flow construct that iterates a certain number of times.

Answer:

control