I have a task to write a function that adds "Hello, " and "Привет" if a name in the list is English or Russian and then returns a tuple. For example, we have ["Mary", "Kate", "Маша", "Alex"]. Our function should return a tuple like this: ('Hello, Mary', 'Hello, Kate', 'Привет, Маша', 'Hello, Alex). I have no idea how to achieve this. I can add Hello to all elements, but what to do with this Привет I don't know.
What I came up with so far...
Please help!
def name(my_list):
for x in my_list:
new_lis = ["Hello, " + x for x in my_list]
new_lis1 = tuple(new_lis)
print(new_lis1)
name(my_list)