Call a function · Chamar uma função
Call a function
greet is already written for you. Call it with "Mia" so the program prints "Hello, Mia".
Writing def only describes the function — nothing happens until you call it by name with brackets: greet("Mia"). The call goes at the left margin, outside the def.
Chamar uma função
greet já está escrita para você. Chame-a com "Mia" para que o programa imprima "Hello, Mia".
Escrever def apenas descreve a função — nada acontece até você chamá-la pelo nome com parênteses: greet("Mia"). A chamada fica na margem esquerda, fora da def.
greet is already written for you. Call it with "Mia" so the program prints "Hello, Mia". · greet já está escrita para você. Chame-a com "Mia" para que o programa imprima "Hello, Mia".
Click Run to see the output here. · Clique em Executar para ver a saída aqui.