Python Forum
Basic programming problem - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Basic programming problem (/thread-21437.html)



Basic programming problem - darek88 - Sep-30-2019

Could You tell me, what wrong with this code is, please?
python import myfile

Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: source code string cannot contain null bytes


RE: Basic programming problem - ichabod801 - Sep-30-2019

There is something wrong with the way you saved your file, and for some reason in has a null byte in it.