@casianTegzes

import random, os, time
Answer to Day 11 Challenge:

listOfWords = ["apple", "orange", "grapes", "pear"]
letterPicked = []
lives = 6
word = random.choice(listOfWords)
while True:
  time.sleep(1)
  os.system("clear")
  letter = input("Choose a letter: ").lower()
  
  if letter in letterPicked:
    print("You've tried that before")
    continue
    
  letterPicked.append(letter)
  
  if letter in word:
    print("You found a letter")
  else:
    print("Nope, not in there")
    lives -= 1
  
  allLetters = True
  print()
  for i in word:
    if i in letterPicked:
      print(i, end="")
    else:
      print("_", end="")
      allLetters = False
  print()
  if allLetters:
    print(f"You won with {lives} left!")
    break
  if lives<=0:
    print(f"You ran out of lives! The answer was {word}")
    break
  else:
    print(f"Only {lives} left")

@cherryoreos69

thank you for the video! it was so helpful

@maisy_daisy07

ive been learning how to code through the help of your videos and they're so helpful! keep posting pls

@leafnote-h4j

thanks bro 🔥💯

@alex_11-p8w

this made me understand how to program hangman thanks! I have homework due and it was to code a hangman game 👍

@starseventea

when would you ever use lists in like actual programming? I'm new so I don't really know 😕

@chronoray8786

You're not really 69 years old... XD