This is so simple! Why isnt it working?!?!?
My python program...
def main():
mont = []
mont[0] = "bnkj1"
mont[1] = "bnkj2"
mont[2] = "bnkj3"
print(mont[0])
main()
This is what I get when running it...
Traceback (most recent call last):
File "/Users/hunterjamesnelson/Documents/bruceArray.py", line 9, in <module>
main()
File "/Users/hunterjamesnelson/Documents/bruceArray.py", line 3, in main
mont[0] = "bnkj1",
IndexError: list assignment index out of range
>>>
Thanks!
lists; "array", to us, means something very different and less often used.