<commit_before># import turtle
from turtle import *

# define a function to draw a square with a for loop
def square():
  for side in range (4):
    forward(50)
    right(90)

# call the function to draw a square, or, a few squares
square()

penup()
goto(90, 90)
pendown()

square()

penup()
goto(-90, -90)
pendown()

square()<commit_msg>lesson 1 example: step 4 - define another function to facilitate drawing several squares<commit_after># import turtle
from turtle import *

# define a function to draw a square with a for loop
def square():
  for side in range (4):
    forward(50)
    right(90)

# define a function to handle the moving around part to draw the square
def moveAndDraw(x, y):
  penup()
  goto(x, y)
  pendown()
  square()

# call the function to draw the squares several times
moveAndDraw(0, 0)
moveAndDraw(90, 90)
moveAndDraw(-90, -90)
{'fraction_non_alphanumeric': 0.09929906542056074, 'fraction_numerical': 0.035046728971962614, 'mean_word_length': 4.011695906432749, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5787406', 'n_tokens_mistral': 303, 'n_tokens_neox': 273, 'n_words': 121}