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

Understanding Python Scripts

Uploaded by

mobinarafraf0
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)
12 views1 page

Understanding Python Scripts

Uploaded by

mobinarafraf0
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