0

Can somebody help me with adding words

23rd Jun 2021, 3:28 AM
Izzrafiq Syakrawi
Izzrafiq Syakrawi - avatar
6 Respostas
+ 2
def concatenate(*args): result = None for i in args: if result == None: result = i else: result += "-" + i return result print(concatenate("I", "love", "Python", "!"))
13th Sep 2021, 12:01 PM
Brigido bergado jr
Brigido bergado jr - avatar
+ 1
Hi Izzrafiq Syakrawi You concat (add words) in python by using the “+” operator between strings
23rd Jun 2021, 3:33 AM
Ollie Q
Ollie Q - avatar
+ 1
Copy this answer and like and check
13th Sep 2021, 12:01 PM
Brigido bergado jr
Brigido bergado jr - avatar
0
Last question
23rd Jun 2021, 3:28 AM
Izzrafiq Syakrawi
Izzrafiq Syakrawi - avatar
0
Ok thank you
23rd Jun 2021, 3:34 AM
Izzrafiq Syakrawi
Izzrafiq Syakrawi - avatar
0
No problem, happy coding!
23rd Jun 2021, 3:35 AM
Ollie Q
Ollie Q - avatar