Home > Art, Problem, Projects/Experiments, Python > Python Drawing flower

Python Drawing flower




Python: Draw Flower

Drawing with Python

In this post I am using some codes to draw mathematical shapes that looks like flower.

To do this we need to import turtle library, then using circle function to complete our work. You may play around with the numbers and figure out what will happen.


#python #code
import turtle
t = turtle.Turtle()
t.hideturtle()
t.pendown()
for x in range (30):

t.circle(60,70)

if x % 2 == 0:

t.circle(10,70)








Follow me on Twitter..

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s