New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How do I clear output in python3
3 Answers
+ 1
you can use
import os
os.system("clear") #if you are on linux or mac
os.system("cls") #if you are on windows
0
I tried import os but it's not working
0
Maybe on sololearn it dont work