Lesson 1

Learning about the Print function

For this Project, we will be coding our own version of the popular game “Madlibs”!

In order to do this, we will need to introduce a new function. The print() function will print out any string you give to it in parentheses.

On line 2, add in print(“Hello World”)

Run the Program, and look for the text to print out in the Terminal (Bottom of the Screen)

Using the Print Function

Now, let’s add on an additional print function. On the next line, add in ‘print(“Hello, my name is John Smith”)’ You can substitute in your own name if you want!

Test the code, and we should see it show up in the terminal window