Python: Difference between revisions
Mr. MacKenty (talk | contribs) |
Mr. MacKenty (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
[[media:Programming companion Python.pdf | Please click here for an excellent resource for learning python]] | [[media:Programming companion Python.pdf | Please click here for an excellent resource for learning python]] | ||
<!-- [[media: | <!-- [[media:File:Python3 reference cheat sheet.pdf| Please click here for a checklist you must complete]] --> | ||
[[media:Python3 reference cheat sheet.pdf|Please click here for our python cheatsheet]] | |||
Line 14: | Line 15: | ||
# It is the CS introductory programming language in many universities | # It is the CS introductory programming language in many universities | ||
# It has an especially clear syntax | # It has an especially clear syntax | ||
# We get to | # We get to logical thinking over syntax issues much faster | ||
# The language is well-supported | # The language is well-supported | ||
# Library management is a | # Library management is a straight forward | ||
# The language is very powerful for solving complex problems | # The language is very powerful for solving complex problems | ||
Line 23: | 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]] | |||
# [[Understand how to input strings and numbers into variables]] | # [[Understand how to input strings and numbers into variables]] | ||
## [[Variable scope in Python]] | |||
# [[Understand string manipulation functions]] | # [[Understand string manipulation functions]] | ||
# [[String manipulation functions]] | # [[String manipulation functions]] | ||
Line 36: | Line 40: | ||
# [[Understand serial files]] | # [[Understand serial files]] | ||
# [[How to handle exceptions for validation]] | # [[How to handle exceptions for validation]] | ||
# [[Dictionaries | ## [[Managing exceptions in Python]] | ||
# [[Dictionaries|Understand dictionaries]] | |||
# [[Date and times with Python]] | |||
== References == | == References == |
Latest revision as of 08:34, 28 March 2023
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
- Date and times with Python