Advertisement
angeldp

clear_screen

Jan 2nd, 2024
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def clear_screen():
  2.     """
  3.    Clear the user screen based on the operating system used
  4.  
  5.    Returns
  6.    -------
  7.    None.
  8.  
  9.    """
  10.  
  11.     if name == "posix":
  12.         system("clear")
  13.     elif name == "ce" or name == "nt" or name == "dos":
  14.         system("cls")
Tags: DeepSpace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement