import ssTraceback (most recent call last): File "c:\python\python3.9.4\lib\site-packages\IPython\core\interactiveshell.py", line 3441, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-15-c2e5125ec1bc>", line 1, in <module> import ss File "C:\Users\My Pc\ss.py", line 6 if__name__=="__main__": ^SyntaxError: invalid syntax
Haven't understood how the GCD code will work? Haven't understood the code...
13237 visits
Outline:About Python modules What is importing? How to write a function and save it as a script Run a python script Import a module Example to import a module usage of __name__ variable Write test condition using the name variable How importing works in new IPython console Different ways of running the Python script
About Python modules What is importing? How to write a function and save it as a script Run a python script Import a module Example to import a module usage of __name__ variable Write test condition using the name variable How importing works in new IPython console Different ways of running the Python script
Show video info
Pre-requisite