0

unexpected character after line continuation character.

i've just started typing this code and i can't get pass this error, i don't quite understand what's wrong. Thanks in advance def main(): mainvar= int(input('INGRESE UNA OPCIÓN'\N,'1.COMPRA'\N, '2.LISTA DE PRODUCTOS'\N, '3.SALIR')) main() *the debugger signals the space after the las parenthesys*

11th Jan 2019, 1:56 AM
Milo Il Giovane
Milo Il Giovane - avatar
1 Réponse
+ 1
The newline character ("\n", not "\N") must be within single/double quotes. Also, the input() method takes a single optional argument. Doing input("a", "b") throws a TypeError. Try this: def main(): mainvar = int(input('INGRESE UNA OPCION \n1.COMPRA \n2.LISTA DE PRODUCTOS \n3.SALIR'))
11th Jan 2019, 2:15 AM
Diego
Diego - avatar