Unable to execute .py file as mentioned in Python Modules

I am unable to execute my .py file as illustrated in lecture titled “Python Module”. I have created a .py file in jupyter notebook itself and currently using ubuntu.

what was the error exactly ? what error was it throwing ?

I am marking your doubt as Resolved for now. Re-open it if required