“Imprima variável na frase python” Respostas de código

Variáveis ​​de impressão em python e corda

# This prints out "John is 23 years old."
name = "John"
age = 23
print("%s is %d years old." % (name, age))
# note: the letter is based on the datatype. %s = string, %d = decimal
Jealous Joey

Python Print Variable and String

foo = "seven"

print("She lives with " + foo + " small men")
Dark Dolphin

Imprima variável na frase python

what is your name?
what is your favorite color?
Outstanding Ox

Respostas semelhantes a “Imprima variável na frase python”

Perguntas semelhantes a “Imprima variável na frase python”

Mais respostas relacionadas para “Imprima variável na frase python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código