Posts

Showing posts from October, 2021

creating ravan using turtle python apni programming

Image
  import turtle import turtle as t t.hideturtle() t.bgcolor( "dark orange" ) t1=turtle.Turtle() t1.hideturtle() def pos1 (x , y): t1.penup() t1.goto(x , y) me t1.pendown() def pos (x , y): t.penup() t.goto(x , y) t.pendown() pos(- 80 , 130 ) t.right( 30 ) for i in range ( 3 , 13 ): t.pensize(i) t.left( 3 ) t.forward( 7 ) for i in range ( 13 , 3 , - 1 ): t.pensize(i) t.left( 3 ) t.forward( 7 ) pos(- 70 , 115 ) t.right( 60 ) for i in range ( 3 , 13 ): t.pensize(i) t.left( 3 ) t.forward( 6 ) for i in range ( 13 , 3 , - 1 ): t.pensize(i) t.left( 3 ) t.forward( 6 ) pos(- 60 , 100 ) t.right( 60 ) for i in range ( 3 , 13 ): t.pensize(i) t.left( 3 ) t.forward( 5 ) for i in range ( 13 , 3 , - 1 ): t.pensize(i) t.left( 3 ) t.forward( 5 ) t.color( "black" , "dark orange" ) pos(- 5 , 90 ) t.begin_fill() t.circle( 15 ) t.end_fill() t.color( "black" ) pos( 0 , 70 )

navratri special turtle python apni programming

Image
  import turtle as t t.bgcolor( "gold" ) def pos (x , y): t.penup() t.goto(x , y) t.pendown() #For Tika pos( 0 , 200 ) t.color( "black" ) t.begin_fill() t.circle( 40 ) t.end_fill() #For Left Eyebrow pos(- 30 , 200 ) t.begin_fill() t.right( 45 ) for i in range ( 20 ): t.left( 3 ) t.back( 10 ) for i in range ( 10 ): t.right( 3 ) t.back( 10 ) t.right( 18 ) for i in range ( 13 ): t.left( 3 ) t.forward( 10 ) for i in range ( 20 ): t.right( 2 ) t.forward( 10 ) t.end_fill() #For Right Eyebrow t.left( 80 ) pos( 30 , 200 ) t.begin_fill() for i in range ( 20 ): t.right( 3 ) t.forward( 10 ) for i in range ( 10 ): t.left( 3 ) t.forward( 10 ) t.left( 18 ) for i in range ( 13 ): t.right( 3 ) t.back( 10 ) for i in range ( 20 ): t.left( 2 ) t.back( 10 ) t.end_fill() #For Right Eye pos( 40 , 150 ) t.pensize( 15 ) t.left( 10 ) for i in range ( 20 ): t.right( 3 ) t.forward( 10 ) for i in range ( 10 ):

creating emoji part 5 using turtle python apni programming

Image
 import turtle t=turtle.Turtle() turtle.bgcolor("purple") t.color("black","yellow") def mypos(x,y):     t.penup()     t.goto(x,y)     t.pendown() mypos(0,-100) t.begin_fill() t.circle(150) t.end_fill() t.pensize(7) mypos(-50,80) t.color("black","white") t.begin_fill() t.circle(30) t.end_fill() t.pensize(7) mypos(-60,90) t.color("black","gray") t.begin_fill() t.circle(15) t.end_fill() mypos(50,80) t.color("black","white") t.begin_fill() t.circle(30) t.end_fill() t.pensize(7) mypos(40,90) t.color("black","gray") t.begin_fill() t.circle(15) t.end_fill() mypos(10,150) t.left(45) t.pensize(17) for i in range(10):     t.right(10)     t.forward(10) mypos(-10,150) for i in range(10):     t.left(10)     t.backward(10) t.color("black") t.begin_fill() t.pensize(7) mypos(-50,0) t.left(90) t.circle(30) t.end_fill() t.hideturtle() t.penup() t.backward((t.getscreen().window_width()

creating emoji part 3 using turtle python apni programming

Image
  import turtle t=turtle.Turtle() turtle.bgcolor( "purple" ) t.color( "black" , "yellow" ) def mypos(x , y): t.penup() t.goto(x , y) t.pendown() mypos( 0 , - 100 ) t.begin_fill() t.circle( 150 ) t.end_fill() t.pensize( 7 ) mypos(- 50 , 80 ) t.color( "black" , "white" ) t.begin_fill() t.circle( 30 ) t.end_fill() t.pensize( 7 ) mypos(- 50 , 90 ) t.color( "black" , "gray" ) t.begin_fill() t.circle( 10 ) t.end_fill() mypos( 70 , 130 ) t.left( 90 ) t.pensize( 7 ) t.right( 60 ) t.backward( 50 ) t.right( 60 ) t.forward( 50 ) mypos(- 100 , 0 ) t.right( 30 ) t.color( "black" , "white" ) t.begin_fill() for i in range( 11 ): t.left( 10 ) t.forward( 20 ) t.goto(- 100 , 0 ) t.end_fill() t.hideturtle() t.penup() t.backward((t.getscreen().window_width() / 2 ) - 5 ) message = "subscribe \n Like \n Share" t.write(message , move= False, font=( 'monaco' , 30 , 'bold' )