Skip to content
Sign upLog in
← Back to Community

How to clear screen in Python? os.system not working?

Profile icon
JonathanBaker

If you have a moment and could point me in the right direction. Thanks!

Cannot infer image mime type

Voters
Profile icon
Farlin-DevaDeva
Profile icon
kittykat124
Profile icon
JonathanBaker
Comments
hotnewtop
Profile icon
REALTheo_tcd

import replit
replit.clear()

Profile icon
amasad

FYI: we're fixing this so you don't have to use replit.clear(). Coming very soon.

Profile icon
21natzil

On replit, you can import the replit module and use it's clear command.

import replit replit.clear()
Profile icon
JonathanBaker

@21natzil
thanks!