Python: Difference between revisions
Mr. MacKenty (talk | contribs) |
Mr. MacKenty (talk | contribs) |
||
Line 24: | Line 24: | ||
These ideas follow our programming guide, linked above. | These ideas follow our programming guide, linked above. | ||
# [[Installing libraries in Python]] | |||
# [[Understand how to output text strings]] | # [[Understand how to output text strings]] | ||
## [[Exceptions and pre-conditions]] | ## [[Exceptions and pre-conditions]] |
Revision as of 15:23, 13 December 2021
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.[2]
Please click here for an excellent resource for learning python
Please click here for our python cheatsheet
Python is our language of choice.
- It is the CS introductory programming language in many universities
- It has an especially clear syntax
- We get to logical thinking over syntax issues much faster
- The language is well-supported
- Library management is a straight forward
- The language is very powerful for solving complex problems
Basic ideas
These ideas follow our programming guide, linked above.
- Installing libraries in Python
- Understand how to output text strings
- Understand how to input strings and numbers into variables
- Understand string manipulation functions
- String manipulation functions
- Understand how to use selection statements
- How to use selection statements
- Understand how to use arithmetic operations and random numbers
- Understand counter controlled iterations
- Understand condition controlled iterations
- Understand subroutines, procedures and functions
- Understand arrays and lists
- Understand serial files
- How to handle exceptions for validation
- Understand dictionaries