Lesson 2

Incorporating Variables


With a basic understanding of print functions, we can start to add in variables. on line 8, add the following code myName = “John Smith” Feel free to swap in your own name

On line 9, we can incorporate the variable into a print function. add in the following code: print(“Hello, my name is ” + myName)

Test the code, and make sure that the print function is using whatever name is set for the myName variable. If you change what the variable is “equals” to, it should reflect in our output

Remeber, the Output for our program will show up at the bottom of the screen, inside of the Terminal window