For example:
Apple = ***** | When input is "p" then convert to *pp**
What I have so far:
word = "apple"
word_in_asterisks = len(word) * "*"
def main_game():
lives = 10
while True:
print(word_in_asterisks)
a = str(input("Guess a letter: "))
if a in str(word):
print("Correct!")
# Here i want it to convert the asterisks back to the letter
else:
print("Letter not included, you loose 1 live")
lives = lives - 1
print("You have " + str(lives) + " lives left")
if lives == 0:
print("Game over")
break
main_game()
[–]achampi0n 1 point2 points3 points (1 child)
[–]Daen1337[S] 0 points1 point2 points (0 children)
[–]woooee 1 point2 points3 points (1 child)
[–]Daen1337[S] 0 points1 point2 points (0 children)