dbosk / intropy

En introduktion till programmering i Python
https://daniel.bosk.se/intropy
Other
5 stars 4 forks source link

Summer2023 func args #229

Open dbosk opened 11 months ago

dbosk commented 11 months ago

Reworks the functions-variables section.

dbosk commented 11 months ago

@celinasoori still not sure if the fusion in the first example should be fusion or not. It's not really varying several aspects together. Or maybe it is. I'll think some more while I continue with other aspects.

One thing that I find is missing now is "starting with the undivided whole, focusing its parts (contrast and generalisation) and then fusing it back together".

dbosk commented 11 months ago

I decided that the fusion is actually generalisation.

dbosk commented 11 months ago

I added the first example of functions in relation to variables. Since I reuse the first example to introduce the contrast, I think we're getting a bit of the part-whole relationship.

dbosk commented 11 months ago

I also highlighted what corresponds. Maybe that's better in this kind of example? Since that's the relevant change, the others being simply consequences. What do you think @celinasoori ?