Guess what’s this time for? Yes, this is the time to say Hello to 2023!
2023 is approaching and if you want to wish Happy New Year in programming style, take a look here.
Let’s see how we can write code for Wishing Happy New Year 2023 in Python Turtle.
Code for Wishing Happy New Year 2023 in Python Turtle
Importing module
import turtle
Setting up Screen
screen = turtle.Screen()
screen.setup(width=1.0, height=1.0)
turtle.bgcolor('white')
tr = turtle.Turtle()
tr.speed("fastest")
Left decoration
for i in range(10):
for i in range(2):
tr.pensize(7)
tr.goto(-500, 0)
tr.down()
tr.color("purple")
tr.forward(100)
tr.circle(5, steps=4)
tr.right(60)
tr.color("violet")
tr.forward(50)
tr.right(120)
tr.right(30)
Right decoration
for i in range(10):
for i in range(2):
tr.pensize(7)
tr.goto(470, 0)
tr.down()
tr.color("red")
tr.forward(100)
tr.circle(5, steps=4)
tr.right(60)
tr.color("crimson")
tr.forward(50)
tr.right(120)
tr.right(30)
Top decoration
for i in range(10):
for i in range(2):
tr.pensize(7)
tr.goto(20, 265)
tr.down()
tr.color("forest green")
tr.forward(100)
tr.circle(5, steps=4)
tr.right(60)
tr.color("lime")
tr.forward(50)
tr.right(120)
tr.right(30)
Bottom decoration
for i in range(10):
for i in range(2):
tr.pensize(7)
tr.goto(20, -220)
tr.down()
tr.color("dark turquoise")
tr.forward(100)
tr.circle(5, steps=4)
tr.right(60)
tr.color("cyan")
tr.forward(50)
tr.right(120)
tr.right(30)
Writing Happy New Year 2023 in Python turtle
turtle.color('red')
turtle.goto(-320, 40)
turtle.write("Happy ", font=(None, 60))
turtle.goto(-60, 40)
turtle.color('deep pink')
turtle.write("New", font=(None, 60))
turtle.goto(145, 40)
turtle.color('blue')
turtle.write("Year", font=(None, 60))
turtle.goto(-74, -60)
turtle.color('green')
turtle.write("2023!", font=(None, 60))
Complete code for Wishing Happy New Year 2023 in Python Turtle
import turtle screen = turtle.Screen() screen.setup(width=1.0, height=1.0) turtle.bgcolor('white') tr = turtle.Turtle() tr.speed("fastest") tr.up() # left decoration for i in range(10): for i in range(2): tr.pensize(7) tr.goto(-500, 0) tr.down() tr.color("purple") tr.forward(100) tr.circle(5, steps=4) tr.right(60) tr.color("violet") tr.forward(50) tr.right(120) tr.right(30) tr.up() # right decoration for i in range(10): for i in range(2): tr.pensize(7) tr.goto(470, 0) tr.down() tr.color("red") tr.forward(100) tr.circle(5, steps=4) tr.right(60) tr.color("crimson") tr.forward(50) tr.right(120) tr.right(30) tr.up() # top decoration for i in range(10): for i in range(2): tr.pensize(7) tr.goto(20, 265) tr.down() tr.color("forest green") tr.forward(100) tr.circle(5, steps=4) tr.right(60) tr.color("lime") tr.forward(50) tr.right(120) tr.right(30) tr.up() # bottom decoration for i in range(10): for i in range(2): tr.pensize(7) tr.goto(20, -220) tr.down() tr.color("dark turquoise") tr.forward(100) tr.circle(5, steps=4) tr.right(60) tr.color("cyan") tr.forward(50) tr.right(120) tr.right(30) turtle.up() turtle.color('red') turtle.goto(-320, 40) turtle.write("Happy ", font=(None, 60)) turtle.goto(-60, 40) turtle.color('deep pink') turtle.write("New", font=(None, 60)) turtle.goto(145, 40) turtle.color('blue') turtle.write("Year", font=(None, 60)) turtle.goto(-74, -60) turtle.color('green') turtle.write("2023!", font=(None, 60)) turtle.done()
Output
Image output:
Video output:
Thank you for visiting our website.
Also Read:
- Radha Krishna using Python Turtle
- Drawing letter A using Python Turtle
- Wishing Happy New Year 2023 in Python Turtle
- Snake and Ladder Game in Python
- Draw Goku in Python Turtle
- Draw Mickey Mouse in Python Turtle
- Happy Diwali in Python Turtle
- Draw Halloween in Python Turtle
- Write Happy Halloween in Python Turtle
- Draw Happy Diwali in Python Turtle
- Extract Audio from Video using Python
- Drawing Application in Python Tkinter
- Draw Flag of USA using Python Turtle
- Draw Iron Man Face with Python Turtle: Tony Stark Face
- Draw TikTok Logo with Python Turtle
- Draw Instagram Logo using Python Turtle
- I Love You Text in ASCII Art
- Python Turtle Shapes- Square, Rectangle, Circle
- Python Turtle Commands and All Methods
- Happy Birthday Python Program In Turtle
- I Love You Program In Python Turtle
- Draw Python Logo in Python Turtle
- Space Invaders game using Python
- Draw Google Drive Logo Using Python
- Draw Instagram Reel Logo Using Python
- Draw The Spotify Logo in Python Turtle
- Draw The CRED Logo Using Python Turtle
- Draw Javascript Logo using Python Turtle
- Draw Dell Logo using Python Turtle
- Draw Spider web using Python Turtle