carpentries-incubator / python-novice-programming-gapminder

An introduction to Python for non-programmers using Gapminder data
https://carpentries-incubator.github.io/python-novice-programming-gapminder/
Other
2 stars 0 forks source link

Repeating Actions with Loops - broken link and missing information #41

Open carolbooth2 opened 1 month ago

carolbooth2 commented 1 month ago

https://carpentries-incubator.github.io/python-novice-programming-gapminder/05-loop/index.html

  1. broken link: https://carpentries-incubator.github.io/python-novice-programming-gapminder/reference/#for-loop behind text 'for loop'

  2. 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)

jsteyn commented 1 month ago
  1. Should this not be two different issues?
  2. "2 returns"? What two returns?
carolbooth2 commented 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.

jsteyn commented 1 month ago

Which environment is your environment?

carolbooth2 commented 1 month ago

I'm on Ubuntu 22.04, using system Python3 plus pandas and matplotlib installed in userspace, working at the command line