“Переменные и строку Python Print” Ответ

Переменные и строку Python Print

# 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 и строка

foo = "seven"

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

Ответы похожие на “Переменные и строку Python Print”

Вопросы похожие на “Переменные и строку Python Print”

Больше похожих ответов на “Переменные и строку Python Print” по Python

Смотреть популярные ответы по языку

Смотреть другие языки программирования