Project Page: Biodiversity Capstone Project
Those who complete this project offline can, of course, use Python 3. However, Codecademy’s online environment for the project uses Python 2.
import sys print(sys.version)
2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]
It’s Python 2.7.17.
This might not really matter much unless you use the environment to perform certain operations, such as division. For example, for Exercise 14, Step 3, you may have:
sample_size_per_variant = 870
sample_size_per_variant is an
You might then do this in Exercise 14, Step 4:
yellowstone_weeks_observing = sample_size_per_variant / 507
If so, you’ll be disappointed to find that
yellowstone_weeks_observing was set to
1, when it should be closer to
To compensate, you could convert at least one of the operands to
float prior to the division.
The same issue applies to Step 5.
The above was last edited on August 31, 2020 to add some minor details for clarification.