Open alexmojaki opened 4 years ago
I think this goes here:
Leave out the if/else part. I often include the else
as an intentional stylistic choice. "If condition always ends up being True" then there's a bigger problem which has little to do with this chapter.
There's already a double_numbers
step in chapter 6. They should already know how to do this, we're just quickly reminding them that this is the correct way. I think making them do this as an exercise is too tedious.
This leaves the page with no exercises, which is maybe a problem, but i think it's ok.
All the code should be copyable, except the last one. The user should only have to change return letter
to break
so that they understand the difference. No need to print the return value.
Some things to add to the current functions chapter:
return
ends the function call. Sometimes beginners want to return a list of values like this:Explain that they must build up a list instead. Maybe hint at generators but don't actually show them.
Things that will only be covered in a later chapter:
global
statement