Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 clear screen with pycharm
Hi ,I have found in the internet a code to clear a screen:

def clear_screen():
    os.system('cls' if == 'nt' else 'clear')
However I cannot use it, because if i type

print("nt" in
I get

Process finished with exit code 0
as 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


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 1,878 Feb-06-2019, 01:25 AM
Last Post: woooee
  PyCharm Clear Screen Larry 4 6,704 Feb-22-2018, 12:18 AM
Last Post: sparkz_alot
  How to clear the screen of glitched rectangles? user294869 1 1,577 Mar-03-2017, 09:36 AM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)