Download presentation
Presentation is loading. Please wait.
1
Python 3 Mr. Husch
2
Lesson Overview and Objectives
This lesson introduces how to program variables into Python. Variables should be a concept that they are familiar due to their nature in algebra. Objectives: Students will Define what variables are used for. Create a sequence of code utilizing variables.
3
Activity What are variables and what they are used for in coding?
Variables are representations of something more complex like the variable age might represent the calculation “current year – birth year”. If we would type in print age the terminal would display the age of the user.
4
SAVE AS Lastname_3test
5
Review Review the code, run it, and make any corrections if there is a syntax error.
6
Journal 1) How could you use variables in Python other than the code that was just written? 2) Can you combine variables in Python? If so how?
7
LastName_3 Try and write a code, based off the same ideas in the code you did earlier. This code should be based on a grocery store. You will need to include things like isles, items in the store, check out clerks, and customers. You can decide what the final information is that is printed out, but use those basic ideas to write some variables that work together to tell me about your fictional store. It will need a minimum of 20 lines of code.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.