Skip to content

Commit

Permalink
Create python program
Browse files Browse the repository at this point in the history
  • Loading branch information
AYUSHSURYAVANSHI authored Oct 18, 2022
1 parent 86a40c1 commit eb69d5e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python program
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#Python program to draw Rainbow benzene

import turtle
colors = ['red','purple','blue','green','orange','yellow']
t = turtle.Pen()
turtle.bgcolor('black')
for x in range(360):
t.pencolor(colors[x%6])
t.width(x//100 + 1)
t.forward(x)
t.left(59)

1 comment on commit eb69d5e

@vaibhavee-student
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that can't explain specific to much.

Please sign in to comment.