0% found this document useful (0 votes)
4 views1 page

What Is A Python Script

A Python script is a collection of code lines stored in a file, known as a module, which helps organize related code. There are conventions in Python scripting that ensure code executes correctly and remains readable, such as placing statements on separate lines and using spaces around operators and punctuation. As one learns more commands, additional conventions will be introduced.

Uploaded by

Gavs Sastry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

What Is A Python Script

A Python script is a collection of code lines stored in a file, known as a module, which helps organize related code. There are conventions in Python scripting that ensure code executes correctly and remains readable, such as placing statements on separate lines and using spaces around operators and punctuation. As one learns more commands, additional conventions will be introduced.

Uploaded by

Gavs Sastry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

What is a Python Script?

• A Python script is multiple lines of code stored in a file, also called a module
- Modules help keep your code organized!
- You can have similar or related code all in a single file
• Python scripts have conventions
- Some allow your code to execute correctly
- Others help to keep your code readable
• Basic conventions
- Put every statement on a line by itself
- Use spaces around operators
- Use spaces after commas, colons, and semicolons
• As you learn more commands, you will learn more conventions!

Property of Penn Engineering |

You might also like