You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
Unit 1 Lab: Variables
Overview
Welcome to the first unit lab!
Throughout the course, there is a lab at the end of each unit. Each lab builds upon the prior.
At the end of the Unit 5 lab, you're going to have a mocked application capable of calling an API and returning a result, using object oriented structure.
To get started, let's set up some variables and print out their values.
Deliverables
You're going to build this locally on your computer.
- A jupyter notebook that defines variables and prints result to
stdout(an output cell). - If you don't already have Jupyter installed, please follow these instructions.
Directions
Our first goal is just to get the app printing out movie titles and ratings. We'll hard-code in some values for now.
- Create a variable
movie_titleand set it toBack to the Future. - Create a variable
movie_ratingsto hold the rating and set it to8. - Make a
printstatement that says,The rating for <movie_title> is <movie_rating>. It should call your new variables, so for example,The rating for Back to the Future is 8.