league-curriculum / Python-Apprentice

League Python Apprentice Curriculum
https://league-curriculum.github.io/Python-Apprentice/
Other
1 stars 153 forks source link

add topics associated with print() string? #9

Closed tsneuhaus closed 3 months ago

tsneuhaus commented 3 months ago

I think the .ipynb lesson files are a great addition to the curriculum. I did notice that one concept topic could be added. (Maybe it shows up later?) For example in 06_Variables_and_Functions.ipynb, there is a piece of code

print("Angle for ", sides, " sides is ", angle)

There is a lot going on here: "Angle for " is a string literal that literally prints out what is in the double quotes; 'sides' is a variable so it prints out the value stored in it; and the comma does string concatenation, or gluing strings together. Do these ideas show up in any lesson files?

ericbusboom commented 3 months ago

There are a lot of cases like this where a concept is used but not full explained. I tried to eliminate them, but often putting the concept earlier it more awkward than just using it unexplained. The ones that are unexplained are there to run code that illustrates something else, and if the student has to use it, it will be explained first.