Skip to content
clear
Profile icon
owenbaseball

How do I clear only part of the screen in python

You are viewing a single comment. View All
Profile icon
RYANTADIPARTHI

Do you mean only one part? If that's what you mean, then you can't do it. THe entire screen has to be cleared.

import os os.system('clear')

or

clear()

Any of them should work

Profile icon
Bookie0

@RYANTADIPARTHI

clear() won't just work like that, you have to put it in a function first