How do we make python scripts executable?

How do we make python scripts executable?

- Python scripts can be executed in two ways:
- Suppose I want to execute script1.py
We can open the script1.py in IDE editor & run the script in the frontmost window of the python IDE by hitting the run all button.
Second way is using command prompt by making sure PATH is set appropriately directly type script name else type
>>>python script1.py
How to make Forms in python?
How to make Forms in python - As python is scripting language forms processing is done by Python. We need to import cgi module to access form fields using FieldStorage class.......
How to implement Cookies for Web python?
A cookie is an arbitrary string of characters that uniquely identify a session........
How to use Sessions for Web python?
Sessions are the server side version of cookies. While a cookie preserves state at the client side, sessions preserves state at server side........
Post your comment