suryansh-code / hangman

Consider using f-strings PYL-C0209
Performance
Minor
6 months ago6 months old
Formatting a regular string which could be a f-string
248            if warnings_remaining != 0:
249                warnings_remaining -= 1
250                print(
251                    "You've already guessed that letter. You have %d warning left."252                    % warnings_remaining
253                )
254            else:
Formatting a regular string which could be a f-string
277
278
279        if guesses_remaining == 0:
280            print("Sorry, you ran out of guesses. The word was %s." % secret_word)281
282
283def hangman_with_hints(secret_word):