Код: Выделить всё
#this function takes a name and a town, and returns it as the following:
#"Hello. My name is [name]. I love the weather in [town name]."
def introduction("name","town"):
phrase1='Hello. My name is '
phrase2='I love the weather in '
return ("phrase1" + "name" + "phrase2" + "town")
Код: Выделить всё
introduction("George","Washington")Неверный синтаксис: в строке 1". В Wing101 **,"town"):
Под ним красная полоска. Я знаю, что "имя" и "город" - это строки, а не переменные, но как это исправить?
Подробнее здесь: https://stackoverflow.com/questions/349 ... in-a-funct
Мобильная версия