Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

what happen when we apply * before list in python

Asterisks for unpacking into function call
That print(*fruits) line is passing all of the
items in the fruits list into the print 
function call as separate arguments, without 
us even needing to know how many arguments are in the list.
... Both * and ** can be used multiple times in function calls
Comment

what happen when we apply * before list in python

Asterisks for unpacking into function call
That print(*fruits) line is passing all of the
items in the fruits list into the print 
function call as separate arguments, without 
us even needing to know how many arguments are in the list.
... Both * and ** can be used multiple times in function calls
Comment

PREVIOUS NEXT
Code Example
:: draw heart with python 
::  
Python :: cors error in flask 
Python ::  
:: valueerror expected 2d array got 1d array instead python linear regression 
:: pandas series to string without index 
::  
:: read video with opencv 
Python ::  
::  
Python ::  
Python ::  
::  
Python ::  
::  
Python ::  
Python :: change value in pandas dataframe cell 
:: python dockerfile 
:: find location of library python linux 
::  
::  
Python ::  
::  
::  
Python :: django migrate using db 
::  
Python :: split filename and extension python 
::  
Python :: python plot two lines on same graph 
Python ::  
ADD CONTENT
Topic
Content
Source link
Name
4+4 =