Clear screen inside python
There is no Python Command for IDLE in Windows, to do clear the interactive screen. We can perform using the following simple commands.
1. Using Keyboard
shortcut : (Unix/Linux)
Press CTRL+L
2.
print(“\n”*10) (Windows)
3.
clear=“\n”*10
print(clear)
No comments:
Post a Comment