Define a function to construct list : List Comprehensive : List PYTHON examples


PYTHON examples » List » List Comprehensive »

 

Define a function to construct list


Define a function to construct list

       
S = [x**for x in range(10)]
V = [2**i for i in range(13)]
M = [for x in S if x % == 0]
 
print S; print V; print M



           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo List
» List Comprehensive