Python Forum

Full Version: Book 'Python in high school'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to promote the release of my book "Python in high school - Algorithms and mathematics".
It is a step-by-step explanation of programming to high school students through activities oriented towards mathematics, of course with Python!

The book is now available here:
https://exo7math.github.io/python1-en-exo7/
and also on sale on Amazon (at cost price):
https://www.amazon.com/dp/B085RQRSHL

Best,
Arnaud
It looks like you think that return needs to be in every function? https://exo7math.github.io/python1-en-ex...ctions.pdf
Yes, it is a pedagogical choice to always end a function with the instruction 'return'. This allows to clearly delimit the block of the function. Anyway a function always returns a value, even if the 'return' instruction is not present!
It's an odd choice. I'd recommend you do something more standard - generally simpler, more stream-lined code is preferable.