To draw a square using Python Turtle Graphics - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Tuesday, June 23, 2020

To draw a square using Python Turtle Graphics






Question

To draw a square using Python Turtle Graphics.

Sample TestCase Expected Output

  




Answer


import turtle  
skk = turtle.Turtle() 
  
for i in range(4): 
    skk.forward(50) 
    skk.right(90) 
      
turtle.done() 

Follow Us For More...


2 comments:

  1. It’s actually a great and helpful piece of info. I’m happy that you just shared this helpful info with us. Please keep us informed like this. Thanks for sharing! Best types of nat service provider.

    ReplyDelete
  2. It’s actually a great and helpful piece of info. I’m happy that you just shared this helpful info with us. Please keep us informed like this. Thanks for sharing! Best best machine learning institute in hyderabad service provider.

    ReplyDelete