I'm coding a game like a quiz game in "Pycharm", and I want the console to be cleared after each question is asked. In Replit there is a built in function as "clear()" which allows you to clear the console at any point in your code. From what I know, in python on windows "cls" clears the console but manually and it's not a function that we can use in our codes. can anyone help me with that?
I've tried:
import os def clear(): os.system('cls')
and
import os clear = lambda: os.system('cls')
yet it doesn't work and only shows a broken emoji.