In python how to replace the printed letter with the user guessed digit if the guessed digit is correct and simultaneously in the next step it should show the correct digit along with the letters that is not guessed yet.
k+f
me
Enter a letter: m Enter a digit: 1 You guessed 1 for g correctly. Well done!
k+f
1e
Enter a letter: k Enter a digit: 5 (k, 5) is not correct. Try again
k+ f
1e
Enter a letter: k Enter a digit: 6 You guessed 6 for k correctly. Well done!
6+ f
1e
Aucun commentaire:
Enregistrer un commentaire