The geniuses at my uni decided to teach python instead of PHP, so now I'm stuck with it for my assignments. Anywho, how do you make an empty array in python? Everything I've searched up only tells you how to make them manually, hard coding all the items, not a single one tells you how to just make an empty array of x items. Anyone here know? Thx!
edit: nm got it
ary = []; #make list of 0 length
ary.append('whatever'); #add items
Question
primexx
The geniuses at my uni decided to teach python instead of PHP, so now I'm stuck with it for my assignments. Anywho, how do you make an empty array in python? Everything I've searched up only tells you how to make them manually, hard coding all the items, not a single one tells you how to just make an empty array of x items. Anyone here know? Thx!
edit: nm got it
Edited by PrimexxLink to comment
Share on other sites
5 answers to this question
Recommended Posts