I clicked on the button to give me the solution, I copied it, then reset it and pasted it into the terminal. It still doesn’t accept the solution even if it’s what I copied. I think it’s broken.
I couldn’t figure out why my code wasn’t working when it came to the print section so I used the solution code… But it was identical to the code I had. So I think the last instruction might be bugged.
How can I download the household_income.csv file? In addition to doing the exercises on codecademy, I am doing them on an editor (atom) on my local machine…
It’s because this exercise is woefully out of date and using Python 2 not 3 - which was bad in 2019 and fairly tragic in late 2022 considering Python 2 is officially “End Of Life”. In Python 2 the / operator applied to integers performs integer division i.e. 7/3 = 3. In Python 3 ‘/’ on an int returns a float ie. 7/3 = 3.5. In Python 2 you have to do float(7)/2 which returns 3.5.