May-29-2020, 02:36 AM
Hi,
I am new trying to learn python.
For the turtle, I actually copied the following code and tried to run on Pycharm community 2020 1.1 version just to learn.
The code is from google and actually run by someone:
import turtle
def main():
wn = turtle.Screen()
alex = turtle.Turtle()
alex.forward(150)
alex.left(90)
alex.forward(75)
wn.exitonclick()
But when I clicked run, as seen from you tube the python graphic (or canvas or window, however you call it) will pop up and draw whatever code, but in my case it didn't pop up at all.
It just showed:
'Process finished with exit code 0'
I tried different codes but the window still not popping up.
Can I know what is missing from the installation?
Please advise, appreciate your help.
I am new trying to learn python.
For the turtle, I actually copied the following code and tried to run on Pycharm community 2020 1.1 version just to learn.
The code is from google and actually run by someone:
import turtle
def main():
wn = turtle.Screen()
alex = turtle.Turtle()
alex.forward(150)
alex.left(90)
alex.forward(75)
wn.exitonclick()
But when I clicked run, as seen from you tube the python graphic (or canvas or window, however you call it) will pop up and draw whatever code, but in my case it didn't pop up at all.
It just showed:
'Process finished with exit code 0'
I tried different codes but the window still not popping up.
Can I know what is missing from the installation?
Please advise, appreciate your help.