Skip to main content

Posts

Showing posts from April, 2021

Corona virus structure using Python turtle

 Python programming Python program to make a corona virus structure using turtle framework. import turtle # setting the turtle object trt = turtle.Turtle() # now setting the canvas or screen scr = turtle.Screen() #setting the bg color scr.bgcolor( 'black' ) #lets set to the black #setting the screeen/window title # making the turtle fast trt.speed( 0 ) # 0 means the fastest speed ... scr.title( 'Corona virus Structure' ) # now setting the turtle color trt.color( 'green' ) # lets make it green # now we have to make a loop to continuosly make the borders and structure # use for loop for x in range ( 210 ): if x in range ( 50 ): trt.hideturtle() else : trt.forward( 10 +x) #moving the turtle in forward direction .......... trt.left(x) # rotating the turtle in left at the angle of x =[1,2,3,4........., 210] # now closing the turtle movement and makin the screen stable turtle.done() Watch full video :