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

How To Create Snake Game In C++ Programming Language By Ahvi Official_Coding

 How To Create Snake Game In C++ Programming Language : Source Code :  /*Snake Game create By Ahvi Official_Coding*/ #include <iostream.h> #include <conio.h> #include <graphics.h> #include <dos.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <string.h> class Snake {   int p1,p2,v1,v2,v3,e1,e2,prev,now,n,colr,dsp,cnt,dly,m;   int stp, egGen;   int xr, yr;   void caught ();   public:   long scr;   int strtX,strtY,endX,endY;   int pos [ 100 ][ 2 ];   void show ();   void init ();   void egg ();   void transpose ();   void gnrtCond ();   void gnrtUnCond ();   void check ();   void checkEgg ();   void move ();   void chngDir ();   void sndEt ();   void sndCgt ();   int test ();   void score ();   Snake ();   Snake ( Snake * );   ~Snake ();  }; Snake :: Snake () ...

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...