Something has gone wrong with the numbers you ended up with for your contingency tables. It looks like you ended up with the correct significant/insignificant levels but otherwise they are off.
For reference: the first table should be:
30, 146
75, 413
https://github.com/pappaburger/intro-data-capstone-biodiversity/blob/ba0ea13c4296ec79ac3d08fa6f30c3759291a88c/Codecademy%20Capstone/biodiversity.py#L248
https://github.com/pappaburger/intro-data-capstone-biodiversity/blob/ba0ea13c4296ec79ac3d08fa6f30c3759291a88c/Codecademy%20Capstone/biodiversity.py#L281
Something has gone wrong with the numbers you ended up with for your contingency tables. It looks like you ended up with the correct significant/insignificant levels but otherwise they are off.
For reference: the first table should be: 30, 146 75, 413
and the second should be: 5, 73 30, 146