Discussion: python intro notebook
Anias comments from slack:
- I think the right word in the intro is both. 'ways to do either.' means one of mentioned, doesn't matter which one. But we will teach both, right?
- the overview looks good
- In [1] is missing some sort of explanation. The actual importing is the last part of the notebook, so everyone with ADHD will be lost after this cell, wanting to know what it does and why
- I wouldn't start with the statement 'programming is hard'. You know how psychology works. Math is hard, so most of the society doesn't try to learn it. Maybe 'can be challenging'?
- for data type used in the table, I suggest to use different floats than 1,1 and 0,1, otherwise they look for tired old eye like mine like binary
😛 - for detour I would add that you can assign x1 = 1 but you can't assign 1x = 1
😄 why?- so I didn't know that this part -> int doesn't do a thing. It's a short for '''return an int'''?
- I would add the story/text to the Fibonacci sequence. It is a funny approach of modelling population dynamics and smuggles right away the impact of model assumptions on the output
😄 Most of the code people will see in the first tutorials won't have it. And it doesn't do much. Are you sure you want to introduce it? I am not convinced.
def add_one(x: int) -> int: return x + 1
- I would provide a text example for XOR. Might not be easy for people to get what an exclusive or is.