I need to do something like the following
e = []
m = []
p = []
t = []
...and so on for about 10 different arrays
Is there a way to create all these arrays on one line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it using the following:
It turns out
is not the right way to go,
[[]]*10is for repetition and is just repeating the same object[]10 times, so all the variables would end up getting assigned to the same object.