Python: Difference between revisions

From Computer Science Wiki
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[file:python.png|right|frame|Python programming language<ref>http://www.flaticon.com/</ref>]]
[[file:python.png|right|frame|Python programming language<ref>http://www.flaticon.com/</ref>]]


Python is our language of choice as it is the CS introductory programming language in many universities and it is a wonderful learning language. Below are topics related to Python and learning how to program in Python.


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.<ref>https://www.python.org/doc/essays/blurb/</ref>


==Basic ideas ==


[[functions in Python]]
[[media:Programming companion Python.pdf | Please click here for an excellent resource for learning python]]
<!-- [[media:File:Python3 reference cheat sheet.pdf| Please click here for a checklist you must complete]] -->


[[simple lists in Python]]
[[media:Python3 reference cheat sheet.pdf|Please click here for our python cheatsheet]]


[[managing exceptions in Python]]


[[variable scope in Python]]
Python is our language of choice.


[[modulo in Python]]
# 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


== Problem sets ==
[[file:squaresmall.png|right|frame]]
Every problem set is a formative assignment.  [[Media:Problem-setrubric.pdf|Please click here to see how you will be graded]]


==Basic ideas ==
These ideas follow our programming guide, linked above.


 
# [[Installing libraries in Python]]
{| style="width: 95%;" class="wikitable sortable"
# [[Understand how to output text strings]]
|-
## [[Exceptions and pre-conditions]]
! Problem Set !! Difficulty Level !! Notes
# [[Understand how to input strings and numbers into variables]]
|-
## [[Variable scope in Python]]
| [[chess]] || Expert || None
# [[Understand string manipulation functions]]
|-
# [[String manipulation functions]]
| [[Strings: making HTML tags]] || Average || None
# [[Understand how to use selection statements]]
|-
# [[How to use selection statements]]
| [[simple password rules]] || Average || None
# [[Understand how to use arithmetic operations and random numbers]]
|-
# [[Understand counter controlled iterations]]
| [[date fashion]] || Average || None
# [[Understand condition controlled iterations]]
|-
# [[Understand subroutines, procedures and functions]]
| [[mean, median, mode and other statistical functions]] || Expert || There are three parts to this problem set. 2 are beginner, but 1 is very challenging :-)
# [[Understand arrays and lists]]
|-
# [[Understand serial files]]
| [[Email validator]] || Beginner || None
# [[How to handle exceptions for validation]]
|-
## [[Managing exceptions in Python]]
| [[making a small grid]] || Average || None
# [[Dictionaries|Understand dictionaries]]
|-
# [[Date and times with Python]]
| [[moving around a small grid]] || Average || This is the foundation for many possible games you can make in Python!!
|-
| [[Guess a number ]] || Average || There are easy ways to extend this fun little guessing game
|}
 
'''Difficulty Level Key:'''
* '''Beginner:''' this problem set is good for beginners
* '''Advanced:''' this problem set should be challenging
* '''Expert:''' This problem set is very challenging for most students (but it can be solved).
All problem sets have opportunity to exceed standards.


== References ==  
== References ==  


[[Category:Approved by teacher]]
[[Category:Python programming language]]
[[Category:This information is incomplete]]
[[Category:Programming languages]]
[[Category:This page needs to be better organized]]

Latest revision as of 08:34, 28 March 2023

Python programming language[1]


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.

  1. It is the CS introductory programming language in many universities
  2. It has an especially clear syntax
  3. We get to logical thinking over syntax issues much faster
  4. The language is well-supported
  5. Library management is a straight forward
  6. The language is very powerful for solving complex problems


Basic ideas

These ideas follow our programming guide, linked above.

  1. Installing libraries in Python
  2. Understand how to output text strings
    1. Exceptions and pre-conditions
  3. Understand how to input strings and numbers into variables
    1. Variable scope in Python
  4. Understand string manipulation functions
  5. String manipulation functions
  6. Understand how to use selection statements
  7. How to use selection statements
  8. Understand how to use arithmetic operations and random numbers
  9. Understand counter controlled iterations
  10. Understand condition controlled iterations
  11. Understand subroutines, procedures and functions
  12. Understand arrays and lists
  13. Understand serial files
  14. How to handle exceptions for validation
    1. Managing exceptions in Python
  15. Understand dictionaries
  16. Date and times with Python

References