<commit_before># python 3.5

import getpass

word = getpass.getpass('Word: ')

tries = 3
guessed_letters = []
playing = True

while playing:

    gamer_input = input('Your guess: ')
    hidden_word = word

    if not gamer_input:
        print ('Choose a letter to guess!')

    elif len(gamer_input) == 1 and gamer_input in 'qwertzuiopasdfghjklyxcvbnm':
        if gamer_input not in guessed_letters:
            guessed_letters.append(gamer_input)
            for letter in word:
                if letter not in guessed_letters:
                    hidden_word = hidden_word.replace(letter, ' __ ')
            print (hidden_word)
            if gamer_input not in word:
                tries -= 1
                if tries == 0:
                    print('Game Over!')
                    playing = False
            if word == hidden_word:
                print('You won!')<commit_msg>Lvl 02 - WordGuess 01 WiP<commit_after># python 3.5

import getpass

word = getpass.getpass('Word: ')

tries = 3
guessed_letters = []
playing = True

while playing:

    gamer_input = input('Your guess: ')
    hidden_word = word

    if not gamer_input:
        print ('Choose a letter to guess!')

    elif len(gamer_input) == 1 and gamer_input in 'qwertzuiopasdfghjklyxcvbnm':
        if gamer_input not in guessed_letters:
            guessed_letters.append(gamer_input)
            for letter in word:
                if letter not in guessed_letters:
                    hidden_word = hidden_word.replace(letter, ' __ ')
            print (hidden_word)
            if gamer_input not in word:
                tries -= 1
                print('Wrong! You have ', tries, 'more tries/try.')
                if tries == 0:
                    print('Game Over!')
                    playing = False
            else:
                print('Good job!')
            if word == hidden_word:
                print('You won!')
{'fraction_non_alphanumeric': 0.08581894296180011, 'fraction_numerical': 0.00837257980115123, 'mean_word_length': 1.7353361945636623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1309779', 'n_tokens_mistral': 587, 'n_tokens_neox': 540, 'n_words': 158}