Let the player know how many tries they have left by coding an f-string starting with the expression {tries - current_tries}.
{tries - current_tries}
Make sure to pick {tries - current_try}, followed by tries left.
{tries - current_try}
tries left