+ 2
How do I add a name to all the elements of a list?
Example: Words=[“hi”, “me”, ...] Words_1=[“uphi” , “upme”..]
3 Respuestas
+ 5
Or:
words=["hi", "me", "you"]
words = list(map(lambda word: word + "up", words))
print(words)
+ 2
[s + mystring for s in mylist]
0
Thaks a lot!