Dec-12-2019, 12:28 PM
Hi ,I have found in the internet a code to clear a screen:
I would be grateful for some help, because I would like to avoid using something like
def clear_screen(): os.system('cls' if os.name == 'nt' else 'clear')However I cannot use it, because if i type
print("nt" in os.name) os.system("cls")I get
True Process finished with exit code 0as answer. After True there is supposed to be a question mark, that i cannot copy here.
I would be grateful for some help, because I would like to avoid using something like
print('\n'*80)