If i want to use return here!! What would be the code for it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If i want to use return here!! What would be the code for it

def names(user): for name in user: print('Hello, ' + name.title()) username = names(['rohan', 'sunil', 'rahul'])

15th May 2020, 8:09 AM
Lucky Nayak
Lucky Nayak - avatar
2 Answers
+ 1
Given the list passed to the names() function, what should the variable username be? For instance do you just want them appended to each other so username = "rohansunilrahul" or some other result?
15th May 2020, 8:25 AM
ChaoticDawg
ChaoticDawg - avatar
0
Thank You bro!! Now i got what to do!!
15th May 2020, 8:32 AM
Lucky Nayak
Lucky Nayak - avatar