The goal is to create a successful sequence of code that will produce an interactive mad lib generator a user can input information into. These attempts were done without looking at a successful end result. The picture below is the blue-print.
Attempt #1-
This first attempt was done with only knowledge from one class with Anita WhiteHill. As you can see, there are many errors, and the sequence does not make a lot of sense. I didn't use functions like input, which are required in order to let someone type in an answer. I did not make any variables, either. I didn't add room for the user to type in their answer, which will mess up the formatting.
Attempt #2-
This attempt is better from the first, since I added in the input function. However, the formatting is still off. Instead of creating variables and printing statements, I printed statements first. There's sometimes mistakes when double parentheses are not added, also.
Attempt #3-
This attempt is almost perfect. The only thing is, I added parenthesis around my variables, which prints the word, and not the value of the variable. For example, if I type in "celeb", it will print the word celeb, and not the given value for that variable. The sequence still runs with these mistakes, but it does not make sense. I also need to add room for the user to input information, so the sentence structure flows nicely, and the words aren't jumbled together.
Attempt #4-
After realizing my mistake on the third attempt, I went back and took off the parenthesis in each of the variable names. Now, I have a successful, interactive mad libs generator.