is there anyway to clear the screen like if you are using cmd prompt??

yes i kno im a noob but any help would be greatly appreciated

Recommended Answers

All 3 Replies


You can use the command shell:

# with windows
import os



# with linux
import os



# if you don't mind that the cursor is at the bottom
print '\n' * 25

Actually, the best way is to design your program so you don't need the clear the screen.

yeah - didn't realise it was the python forum because I just clicked in from RSS :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.