def get_input(prompt):
    ''' (str) --> int
    Ask the user for input, convert it into a str, check for a digit and convert
    into an int. Prompt as long as the user provides a valid input.
    '''
    trials = raw_input(prompt)
    trials = str(trials)
    while not trials.isdigit():
        print "You have to provide an integer for the number of flips!"
        trials = raw_input(prompt)
    return int(trials)
 (str) --> int
    Ask the user for input, convert it into a str, check for a digit and convert
    into an int. Prompt as long as the user provides a valid input.
    
recipes/Python/578859_PseudoRandom_Experiment/recipe-578859.py