In this lesson, you will focus on the details of writing and using functions in a Python program (we will stay within the IPython notebook, primarily, although you can experiment with writing and executing Python programs in a file). First, you will learn about conditional programming. Next, you will learn how to write a function that returns one or more values. Finally, you will learn about iteration and algorithm design.
###Objectives ###
By the end of this lesson, you will be able to:
- Write and use conditional statements in Python.
- Write Python functions that return data.
- Write and use iteration statements in Python.
Approximately 2 hours.
- Chapters 5-7 in Think Python.
- Fundamental Python Concepts, paying special attention to the section on Conditional Statements and Iteration.
- Chapter 5 of Python Essentials, which deals with Logic, Comparisons and Conditions.
- Chapter 2 of Automate the Boring Stuff with Python
When you have completed and worked through the above readings, please take the Week 3 Lesson 3 Assessment.