How to clear screen using python?
Answers
Answered by
0
Answer:
From os import system.
Define a function.
Make a system call with 'clear' in Linux and 'cls' in Windows as an argument.
Store the returned value in an underscore or whatever variable you want (an underscore is used because python shell always stores its last output in an underscore).
Call the function we defined.
Similar questions
Computer Science,
6 months ago
Economy,
6 months ago
Science,
6 months ago
Science,
1 year ago
India Languages,
1 year ago
History,
1 year ago