I want to import the turtle in VSCode, but the turtle canvas appears for a moment and disappears.

Asked 2 years ago, Updated 2 years ago, 17 views

The textbook says you should enter the code using IDLE, but I don't like IDLE very much.Can you manage with Visual Studio Code?By the way, if you enter the code below in IDLE, it will work.Does the turtle work only with IDLE?

import turtle

t=turtle.Pen()

I am a beginner in programming and I am sorry for the rudimentary question.If anyone knows anything, please take care of me.

python

2022-09-30 14:13

1 Answers

Line 4 is a lie

 from Turtle import Turtle, Screen
timy=Turtle()
screen=Screen()
screen.exitonclick()


2022-09-30 14:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.