How to create an Easy 3D Cube in Python Turtle.

Publié le: 07 juillet 2021
sur la chaîne: Coding Tutorials
2,820
22

Hey Guys!
Cyber here,

This is my first video of my channel, I will try to increase the quality and content of the video in the future. Please make sure to drop a like on this video and click the notification bell so that if I upload a video in the future, You can get a Notification.

Code for the 3D Cube:

------------------------------------ UI SETUP --------------------------------------#
from turtle import *

turtle = Turtle()
screen = Screen()
screen.title("3D Cube using Python Turtle")
turtle.color('blue')



------------------------------------- CODE -----------------------------------------#

for i in range(4):
turtle.forward(100)
turtle.left(90)

turtle.goto(50, 50)

for i in range(4):
turtle.forward(100)
turtle.left(90)

turtle.goto(150, 50)
turtle.goto(100, 0)

turtle.goto(100, 100)
turtle.goto(150, 150)

turtle.goto(50, 150)
turtle.goto(0, 100)


screen.mainloop()

Thank You.

Cyber :)


Sur cette page du site, vous pouvez voir la vidéo en ligne How to create an Easy 3D Cube in Python Turtle. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coding Tutorials 07 juillet 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,820 fois et il a aimé 22 téléspectateurs. Bon visionnage!