Python Programming
Python Programming
Python Programming
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Python</strong> <strong>Programming</strong><br />
Basics<br />
<strong>Python</strong> programs are composed of logical lines of code<br />
each made up of one or more physical lines.<br />
•Physical lines may end with comments<br />
•Comments are designated by a # and go to the end of the physical line<br />
•A line with just whitespace is called blank line<br />
•The end of a physical line ends most statements<br />
•Not terminated with a delimiter<br />
•If a line has no comment and ends with a \ then it continues to the next line<br />
•An open parenthesis ( open braket [ or brace { can cause lines to span<br />
multiple physical lines as well<br />
•Block structures are expressed by indentation<br />
12<br />
HP CONFIDENTIAL - ENABLEMENT ONLY, NOT FOR CUSTOMER USE.