Lesson 4

Introducing Input


Once the variables have been set up, we can combine them together into one print function. This will give us that ‘Madlibs’ effect.

Below our variables, add the following code print(name1 + “is a ” + adj1 + ” ” + noun1 + “.”)

Our next line of code will incorporate those two missing variables, the verb and adverb. Add in the following code: print(“They like to “+ adverb1 + ” ” + verb1 + “.”).

When we test this code, two strings should show up in our terminal, after we have completed entering our inputs. Double check to see if you missed any spaces.