Closed ianmonat closed 7 years ago
Hi,
The error is because I didn't check whether you're on Windows or a *nix based system. If you change clear
to cls
it will work.
The most recent check-in fixes the issue:
def clear(self):
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
Thanks for letting me know about this error.
Hi Michael,
I'm just starting your Python for Entrepreneurs course and am enjoying it so far.
I just finished the Python language refresher game and although my code runs, it contains this message about the word 'clear'. (see below)
I tried copying your code from github into my file and the message still displays, so I don't think it's a bug in my code, but perhaps some system setting that needs changing. I'm on Windows 7 and using PyCharm.
Couldn't find the exact fix on Stackoverflow so I thought I'd ask you how to get rid of it, it's more annoying than anything. Thank you. -Ian