Answers for "clear output alternative for visual studio code in python"

0

clear output alternative for visual studio code in python

For Windows
>>> import os
>>> clear = lambda: os.system('cls')
>>> clear()

For Linux the lambda becomes
>>> clear = lambda: os.system('clear')
Posted by: Guest on September-22-2020

Code answers related to "clear output alternative for visual studio code in python"

Python Answers by Framework

Browse Popular Code Answers by Language