0

can we assign no. to array if yes how

28th Jun 2016, 4:01 AM
Nishant Sardana
Nishant Sardana - avatar
9 Answers
+ 1
Append.list(nr) I think. list is the name of the list. nr is a number or value, which you want to add to the list. The list you have to declare before. Something like list = [].
28th Jun 2016, 8:12 AM
Jurgen Mueller
Jurgen Mueller - avatar
0
what Do you mean with no.? numbers?
28th Jun 2016, 7:33 AM
Loeschzwerg
0
means different number or string to a single letter such as a=[1,2,3,4]
28th Jun 2016, 7:35 AM
Nishant Sardana
Nishant Sardana - avatar
0
with this You are assigning a List.
28th Jun 2016, 7:38 AM
Loeschzwerg
0
ya like that
28th Jun 2016, 7:38 AM
Nishant Sardana
Nishant Sardana - avatar
0
well i dont think there are Arrays at all cause we have lists. and they Are quite more useful
28th Jun 2016, 7:41 AM
Loeschzwerg
0
List is the same as an array. Different (program) language so different word for the same thing.
28th Jun 2016, 8:14 AM
Jurgen Mueller
Jurgen Mueller - avatar
0
thnx
28th Jun 2016, 8:15 AM
Nishant Sardana
Nishant Sardana - avatar
0
I thought arrays are like strings though as they are both non-mutable, lists are mutable.
28th Jun 2016, 9:21 AM
Nub Smoo
Nub Smoo - avatar