How do I clear output in python3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I clear output in python3

2nd Dec 2018, 7:29 AM
Seun Paul
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
2nd Dec 2018, 9:05 AM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar
0
I tried import os but it's not working
2nd Dec 2018, 6:31 PM
Seun Paul
0
Maybe on sololearn it dont work
3rd Dec 2018, 6:29 AM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar