name 'sys' is not defined

Frank Millman frank at chagford.com
Mon Dec 30 00:49:43 EST 2019


On 2019-12-30 7:20 AM, safiq713 at gmail.com wrote:
> Deal all,
> Could you please help me how can I avoid this problem
> my Jupyter Notebook code was
> help pls
> 
[snip]
> 
> NameError: name 'sys' is not defined
> 

I know nothing about Jupyter Notebook but somewhere, usually at the top, 
you have to add this line -

     import sys

HTH

Frank Millman



More information about the Python-list mailing list