Skip to main content

How to create A Spider In Python Turtle Programming by Ahvi Official_Coding

 How to create A Spider In Python Turtle Programming:






                 


import turtle

turtle.Screen().bgcolor('black')
t=turtle
t.pencolor('cyan')
t.pensize(2)
t.fillcolor('cyan')
turtle.begin_fill()
t.penup()
t.goto(0,30)
t.pendown()
t.right(140)
t.forward(80)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(100)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(50)
for i in range (10):
    t.left(8)
    t.forward(5)
t.forward(50)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(100)
for i in range (10):
    t.left(5)
    t.forward(5)
t.forward(80)
t.goto(-43,-8)
t.right(20)
for i in range (5):
    t.right(5)
    t.forward(10)
for i in range (5):
    t.right(5)
    t.forward(5)
for i in range(5):
    t.right(10)
    t.forward(3)
for i in range(5):
    t.right(2)
    t.forward(9)
t.right(17)
for i in range(6):
    t.right(2)
    t.forward(8)
   
for i in range(7):
    t.right(7)
    t.forward(1)

for i in range(7):
    t.right(4)
    t.forward(4)
   
for i in range(9):
    t.right(2)
    t.forward(5)
   
t.right(90)
t.forward(22)
t.pensize(30)
t.forward(20)
t.end_fill()

t.pensize(9)
t.goto(-36,-6)
t.forward(100)
t.right(70)
t.forward(120)
t.right(30)
t.forward(30)
t.penup()


t.goto(-30,30)
t.pendown()
t.left(100)
t.forward(70)
t.right(70)
t.forward(60)
t.right(50)
t.forward(30)

t.penup()
t.goto(35,-6)
t.pendown()
t.right(15)
t.forward(100)
t.left(70)
t.forward(120)
t.left(30)
t.forward(30)

t.penup()
t.goto(30,30)
t.pendown()
t.right(100)
t.forward(70)
t.left(70)
t.forward(60)
t.left(30)
t.forward(30)

t.right(10)

t.penup()
t.goto(-50,-50)
t.left(50)
t.pendown()
t.forward(140)
t.left(100)
t.forward(20)
t.left(20)
t.forward(200)
t.left(30)
t.forward(40)

t.penup()
t.goto(50,-50)
t.left(70)
t.pendown()
t.forward(140)
t.right(100)
t.forward(20)
t.right(20)
t.forward(200)
t.right(30)
t.forward(40)

t.penup()
t.goto(-50,-150)
t.right(70)
t.pendown()
t.forward(90)
t.left(110)
t.forward(20)
t.left(20)
t.forward(180)
t.left(30)
t.forward(40)


t.penup()
t.goto(50,-150)
t.left(60)
t.pendown()
t.forward(100)
t.right(110)
t.forward(20)
t.right(20)
t.forward(180)
t.right(30)
t.forward(40)

t.pensize(6)
t.penup()
t.goto(0,40)
t.pendown()
t.right(100)
t.left(20)
t.forward(60)
t.right(70)
t.forward(30)

t.penup()
t.goto(0,40)
t.pendown()
t.right(30)
t.forward(60)
t.left(70)
t.forward(30)


t.done()



How to Create A Snake Game Using C++ Language





PyQt5 Clock Make In Python Programming











Comments

Popular posts from this blog

Rose Create in Python Turtle Programming Language

 Rose Create in Python Turtle Programming Language #Rose program create by Ahvi import colorsys import turtle t = turtle . Turtle () s = turtle . Screen () t . pensize ( 2 ) t . fillcolor ( 'deeppink' ) t . begin_fill () def rr ( a , d , r ):     for i in range ( r ):           t . left ( a )           t . forward ( d ) def rl ( a , d , r ):         for i in range ( r ):               t . right ( a )               t . forward ( d )               def rr1 ( a , d , r ):         for i in range ( r ):           t1 . left ( a )           t1 . forward ( d ) def rl1 ( a , d , r ):         for i in range ( r ):               t1 . right ( a )       ...

PyQt5 clock in python programming

PyQt5 clock in python programming   # created by Ahvi   # importing libraries from email . mime import application from PyQt5 . QtWidgets import * from PyQt5 import QtCore , QtGui from PyQt5 . QtGui import * from PyQt5 . QtCore import * import sys # creating a clock class class Clock ( QMainWindow ):     # constructor     def __init__ ( self ):         super (). __init__ ()         # creating a timer object         timer = QTimer ( self )         # adding action to the timer         # update the whole code         timer . timeout .connect( self . update )         # setting start time of timer i.e 1 second         timer . start ( 1000 )         # setting window title         self . setWindowTitle ( 'Clock' )         # set...