Now, after looking into important function let's take the number of inputs from the user for incorrect attempts and lets get started def get_num_attempts (): while True : num_attempts = input( 'How many incorrect attempts do you want? [1-5] ' ) try : num_attempts = int(num_attempts) if 1 <= num_attempts <= 5 : return num_attempts else : print( '{0} is not between 1 and 5' .format(num_attempts)) except ValueError: print( '{0} is not an integer between 1 and 5' .format(num_attempts)) As we can see we'll give user max number of 5 attempts and min. number of 1 attempt After looking into all the function and learning every bit of information needed to create this game now its time to look into the main function which calls all the other function when required and does the game play smooth and systematic. we'll look into code in p...