hello guys I did not understand why we put * here y
def print_people( # here # *people # here #):
for person in people:
print("hello" + person)
print_people("blabla" , "love" , "blabla")
hello guys I did not understand why we put * here y
def print_people( # here # *people # here #):
for person in people:
print("hello" + person)
print_people("blabla" , "love" , "blabla")
*
In Python used to unpack data from iterables.
Example:
arr = [1,2,3,4,5]
*arr will unpack the array as 1 2 3 4 5