1 2 3 4 5 6 7
def valor1(): while True: try: c = int(input('Primeiro Valor: ')) return c except ValueError: print 'Inválido!'
1 2
Line 7 SyntaxError: Non-ASCII character '\xc3' in file t.py on line 7, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details