Open Educational Resources

Document Type

Lecture or Presentation

Publication Date



An introduction to functions in Python.

Prior knowledge of variables, assignments, expressions, input-output, lists, conditionals, and loops is recommended.

For CS0 students. Part of the CUNY CS04All project.


Lecture slides come in three formats and separate files, as well as three programs-examples.

All the images used in the slides are CC0 licence, packed in the imgs.rar archive together with the information about them

In-class work, HW assignment, assessment questions together with all the programs are in the Activities_and_Assignments.rar archive.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 4.0 License.

Functions_App_lectureSlides_NN.pptx (2910 kB)
lecture slides (power point)

Functions_App_lectureSlides_NN.odp (236 kB)
lecture slides (Libre Office)

Activities_and_Assignments.rar (245 kB)
in-class activity/homework assignment/assessment questions (1 kB)
example 1 (1 kB)
example 2 (1 kB)
example 3

imgs.rar (1968 kB)
images used in lecture slides



To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.