olimpiada/ejercicios/random/temperaturas.py
def intro_part_of_the_day(part):
    """Asks for the temperature of the corresponding part of the day"""
    correct = False
    while correct == False:
        try:
            part_of_the_day = input(part + ": ")
        except TypeError:
            pass
        else:
            if part_of_the_day <= 50 and part_of_the_day >= -30:
                correct = True
    return part_of_the_day
Asks for the temperature of the corresponding part of the day
Asks for the temperature of the corresponding part of the day
Asks for the temperature of the corresponding part of the day
def intro_part_of_the_day(part):
    correct = False
    while correct == False:
        try:
            part_of_the_day = input(part + ": ")
        except TypeError:
            pass
        else:
            if part_of_the_day <= 50 and part_of_the_day >= -30:
                correct = True
    return part_of_the_day
def intro_part_of_the_day ( part ) : correct = False while correct == False : try : part_of_the_day = input ( part + ": " ) except TypeError : pass else : if part_of_the_day <= 50 and part_of_the_day >= - 30 : correct = True return part_of_the_day
Asks for the temperature of the corresponding part of the day
Asks for the temperature of the corresponding part of the day
"""Asks for the temperature of the corresponding part of the day"""
part