I want to create a list whose size is equal to "word_len" and the default char is "_" which can be replaced later by the correct guess of the user. How can I do it? My current code:-
import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_len = len(chosen_word)
guess_letter = input("Guess a letter: ").lower()
final_list = []
for character in chosen_word:
if character == guess_letter:
print("Right")
else:
print("Wrong")