Python Lesson 5 Reflection

Screen Shot 2017-03-25 at 7.44.49 pmScreen Shot 2017-03-25 at 7.48.33 pm

 

In my Guess the word game, a player has 5 attempts to guess the letters of a word and then must guess the word. However if they think that they know the word, they can guess during their 5 tries and either get the word or not. I always thought that if else statements need to have an if and else but I learned that I could write if’s without else’s followed by more ifs and elifs. So I figured out that I can put a lot of if’s and elifs in my code which made it a lot easier. When I was creating the list of words, I first put them into round packets instead of square brackets. The round bracketed “lists” are called tuples and they are used to store different types of data, such as strings and integers rather than just one type. Lists only store one type of data.

Leave a Reply

Your email address will not be published. Required fields are marked *