Day 039 - Project Hangman

import random,os, time

listOfWords = ["british", "suave", "integrity", "accent", "evil", "genius", "Downton"]
wordpicked = []
lives = 6 
wordChosen = random.choice(listOfWords)



while True:
    time.sleep(2)
    os.system("clear")
    print("🎮Hangman🎮")
    letter =  input(" choose a word: ").lower()
  
    if letter in listOfWords:
      print("You have tried that before")
      continue

    wordpicked.append(letter)

    if letter in wordChosen:
      print("You have found the correct letter.")
    else:
      print("Uh huh, not the correct one! Try again")
      lives -=1

NOTE: Anyone could help me with the drawing / visual of hangman while losing lives .

10 posts were merged into an existing topic: Day 039 - Project 39 : Hangman