Dec-29-2021, 06:52 PM
hello, simple question here. If i have a series of items how can i not manually create a list?
Like
a=1
b=2
c=3
d=4
e=5
f=6
g=7
h=8
i=9
j=10
#do something
results:
list1 = [ 1,2,3,4,5,6,7,8,9,10]
I know you can do it manually, like i just did, but is there a way to automate it?
N.B: i gave an exemple for variables, but it can be any items, even objects.
Like
a=1
b=2
c=3
d=4
e=5
f=6
g=7
h=8
i=9
j=10
#do something
results:
list1 = [ 1,2,3,4,5,6,7,8,9,10]
I know you can do it manually, like i just did, but is there a way to automate it?
N.B: i gave an exemple for variables, but it can be any items, even objects.