+ 1

How to put sth. like a string at end of array

I mean an array that was already defined etc. and if yes can you put an array to the end as well?

14th Jul 2018, 5:42 PM
Anton Böhler
Anton Böhler - avatar
1 Answer
+ 3
I don't really understand what you mean. Something like this? arr = [1,3] print(arr) arr.append("string") print(arr) arr2 = [2,"second array"] arr.append(arr2) print(arr)
14th Jul 2018, 5:49 PM
Matthias
Matthias - avatar