Relative Content

Tag Archive for pythonmacospycharm

How do I clear console and restart program in Pycharm?

For example, I’m trying to make a game and at the end of the game, I ask the player if they want to play again. If ‘yes’, I want the console to clear and the program to start from the beginning. How do I go about doing this correctly? Or if clear() doesn’t work in pycharm, how can I just restart the program?