Вот мой код:
Код: Выделить всё
#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")
Моя проблема в том, что мой код этого не делает. Вместо этого я получаю следующую ошибку:
Код: Выделить всё
Invalid syntax: on line 1". In Wing101 **,"town"):
Любая помощь/комментарии приветствуются.
Подробнее здесь: https://stackoverflow.com/questions/349 ... in-a-funct
Мобильная версия