Answers for "Python List lst"

0

Python List lst

lst = [1,2,3,4,5,6,7,8,9,10]
# simple list comprehension
a = [x for x in lst]
print(a)
 
# ouput
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Posted by: Guest on July-19-2021

Code answers related to "Python List lst"

Browse Popular Code Answers by Language