while True: linea = input('> ') if linea[0] == '#' : continue if linea == 'fin': break print(linea) print('¡Terminado!')