It looks like the code file is a jupyter notebook, but since it has been saved as a .py it can't be run as is. If you are running a file in jupyter, be sure to save it as an .ipynb so that it can be opened again in the same format.
i wanted to follow the instruction of the project, saying that i should save the file as .py.
file>save as> and then i saved as py file by typing the file type manually ".py".
was i doing it wrong?
It looks like the code file is a jupyter notebook, but since it has been saved as a .py it can't be run as is. If you are running a file in jupyter, be sure to save it as an .ipynb so that it can be opened again in the same format.