0
Help me solve this?
Question:-Write a function called city_country() that takes in the name of a city and its country. The function should return a string formatted like this: "Santiago, Chile" Call your function with at least three city-country pairs, and print the value thats returned. =># I try to write code for this but i couldnt make it right ... def city_country(city_name, country_name): city_country_name = city_name + ' ' + country_name return city_country_name var = city_country({"Kathmandu", "Nepal"}) print(var)
8 Respostas
+ 1
kibbo ghayal bro,
question is, Call your function with at least three city-country pairs
0
Kiibo bro , but string format must be in "Bhopal, India"
0
The way you wrote that function it takes two parameters. "Bhopal,India" is one. Kiibo's right, "Bhopal","India" would be the correct usage of your function
0
Sorry bro , only my half question was printed now read the question again
0
Gotcha try using "**kwargs" as your parameter. Then find out how **kwargs works
0
Haha 😂.we can't ask to change this question ?very funny lol lan stewart
0
lan stewart bro,
question said return the value,
so ..
0
Haha lol..,bro Ian Stewart work hard😂and then come to others comment section to solve their problems..