import turtle
turtle.shape("circle")
turtle.speed(2) # defining the speed of the turtle module
turtle.forward(150)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(150)
turtle.left(90)
turtle.forward(100)
turtle.left(90)

turtle,exitonclick()

"""
With the For loop:

import turtle
turtle.shape("circle")
turtle.speed(2) # defining the speed of the turtle module

for i in range(2):

  turtle.forward(150)
  turtle.left(90)
  turtle.forward(100)
  turtle.left(90)
 

turtle,exitonclick()

"""