Ask for a name · Perguntar um nome
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.
Pedir um nome
Leia um nome com input() e imprima "Hello, " seguido pelo nome. Para a entrada Mia, imprima "Hello, Mia".
input() espera uma linha e devolve como texto. Armazene em uma variável primeiro, depois use essa variável.
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia". · Leia um nome com input() e imprima "Hello, " seguido pelo nome. Para a entrada Mia, imprima "Hello, Mia".
Click Run to see the output here. · Clique em Executar para ver a saída aqui.