Archive
Archive for December 5, 2018
Python Drawing flower
December 5, 2018
Leave a comment
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)
Categories: Art, Problem, Projects/Experiments, Python
ahradwani.com, Ali Hassan Radwani, Code, Computer, Language, Python, radwani