I am new to python and I am currently using pycharm. I just found out about turtle and thought it was going to be fun to watch YouTube tutorials and make a really easy game so i copied all the code and turns out all that's written is:
Process finished with exit code 0
All the programmers have a new window popping up even with a code like:
import turtle turtle.done()
(of course it is a blank window)
but I just wanted to ask if i did anything wrong or if there was something to do in order to make tabs appear.
Try defining a main() function, and use it in a if __name__ == '__main__' statement:
main()
if __name__ == '__main__'
import turtle def main(): turtle.done() if __name__ == "__main__": main()
1.4m articles
1.4m replys
5 comments
57.0k users