Open carolbooth2 opened 1 month ago
yes probably 2 issues!
In my environment, I have to hit return twice after the last line of the loop before it will run. Perhaps this isn't the case in JupyterHub.
Which environment is your environment?
I'm on Ubuntu 22.04, using system Python3 plus pandas and matplotlib installed in userspace, working at the command line
https://carpentries-incubator.github.io/python-novice-programming-gapminder/05-loop/index.html
broken link: https://carpentries-incubator.github.io/python-novice-programming-gapminder/reference/#for-loop behind text 'for loop'
Not clear that 2 returns are required to make the loop run (is this true in all environments?)
Here’s a better approach: a for loop
odds = [1, 3, 5, 7] for num in odds: print(num)