Python – IOError: [Errno 13] Permission denied:

It looks like you’re trying to replace the extension with the following code: However, you appear to have the array indexes mixed up. Try the following: Note the use of -4 instead of just 4 in the second line of code. This explains why your program is trying to create /Use.hack, which is the first four characters of your file name (/Use), … Read more

Print ArrayList

I have an ArrayList that contains Address objects. How do I print the values of this ArrayList, meaning I am printing out the contents of the Array, in this case numbers. I can only get it to print out the actual memory address of the array with this code: