Sep-28-2023, 12:14 PM
if correct_guess == False:Better:
if not correct_guess:referring to line 69 and some following lines:
word_list = ["aardvark", "baboon", "camel", "jazz", "grass", "follow", "castle", "cloud"]I would always write global variables in uppercase like WORD_LIST instead of word_list
i would use more comments. While writing simple scripts its not really necessary, it can help a lot in the future if you just used to comment your code. I am a huge fan of purpose statements
blank = "" for letter in chosen_word: blank += "_" blank_list = list(blank)you can just write:
blank = "_" * len(chosen_word)If you are only coding for weeks this is pretty good btw