Python Exercises with Solution | Learning | python programming | Python Shorts #shorts ytshorts

preview_player
Показать описание
Python shorts playlist:

#python #python3 #learning #coding
Рекомендации по теме
Комментарии
Автор

You can also use comprehension. test = lambda strs: [len(string) for string in strs]

vask
Автор

I don't get it, I would think the * would mean a pointer, and you would return the memory address of the function "map" or the contents of the memory at address of "map" depending.
What appears to be happening here is that a formated list is being returned, please break down the syntax better. What does the * mean here.
What's the difference between....

Print (map(len, strs))
Vs
Print (*map(len, strs))

And why

petevenuti