How to store values of a list in variables with Python

1 Answer

0 votes
lst = [5, 8, 9, 2]

a, b, c, d = lst 

print(a)
print(b)
print(c)
print(d)



'''
run

5
8
9
2

'''

 



answered Apr 9, 2019 by avibootz
...