## ![](https://s3.amazonaws.com/python-ga/images/GA_Cog_Medium_White_RGB.png) {.separator}

Unit 2 Lab: Control Flow

--- ## Lesson Objectives - Apply what you’ve learned in Unit 2 to create a working Python program. - Wrap up Unit 2 (woohoo!). - Q&A and transition. --- ## You Do: Unit 2 Lab - Control Flow Do you remember the first unit lab? You have a print statement to show the user a movie title and rating. In today's lab, you will use functions, `if` statements, and loops. By the end, your movie app will print a movie title, a movie rating, or both, depending on a string value. **Open the file [`unit-lab-2-directions`](unit-lab-2-directions.md.html) to see the lab and its instructions. Follow the instructions there.** - *If your solution to the last lab didn't quite work, there's working code provided in the [`starter-code`](starter-code/movie_app.py) folder. Copy that to your local folder and work from there.* Try your best! Raise your hand if you really need help. --- ## Debrief: Unit 2 Lab - Control Flow How did it go? Let's go over it. Make sure your code works - the Unit 3 lab builds off this one! --- ## Unit 2 Wrap Up What'd we cover? - Conditionals and Boolean Values - Lists - `append`, `len`, `pop`, and `insert`. - Loops - `for` loops, `while` loops, and `range`. - Functions - including parameters and return statements. - Function arguments - `*args`, kwargs, and `**kwargs` Questions?