Ask for a name · Solicitar un nombre
Ask for a name
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia".
input() waits for one line and hands it back as text. Store it in a variable first, then use that variable.
Solicitar un nombre
Lee un nombre con input() e imprime "Hello, " seguido del nombre. Para la entrada Mia, imprime "Hello, Mia".
input() espera una línea y la devuelve como texto. Almacénala primero en una variable y luego usa esa variable.
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia". · Leer un nombre con input() e imprimir "Hello, " seguido del nombre. Para la entrada Mia, imprimir "Hello, Mia".
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.