Skip to content
Advertisement

python turtle loop

I am trying to create a looping square, and cannot figure out how to get my code to allow me to keep repeating the command of creating squares, times the number input, heres what I have currently.

JavaScript

Advertisement

Answer

You can use for i in range(count_int): to run a piece of code repeatedly given a repeat count in count_int:

JavaScript
Advertisement