I\'m relatively new to Python and it\'s libraries and I was wondering how I might create a string array with a preset size. It\'s easy in java but I was wondering how I might do
strlist =[{}]*10 strlist[0] = set() strlist[0].add("Beef") strlist[0].add("Fish") strlist[1] = {"Apple", "Banana"} strlist[1].add("Cherry") print(strlist[0]) print(strlist[1]) print(strlist[2]) print("Array size:", len(strlist)) print(strlist)