by Janet Rees
ISBN: 1855033526
Buy on Amazon
Found in 1 comment on Hacker News
anigbrowl · 2022-12-09 · Original thread
The Wikipedia article cites his comment as inspired by a pedagogical text titled 'Fizz buzz: 101 spoken numeracy games for kids.'

https://en.wikipedia.org/wiki/Fizz_buzz

https://www.amazon.com/Fizz-Buzz-Spoken-Numeracy-Games/dp/18...

  for n in range(1, 100)
    w = ''
    if not (n % 3) w = 'fizz'
    if not (n % 5) w += 'buzz'
    print(w or n)
I like this version because it demonstrates variable definition, operator precedence, and logical evaluation in Python as well as operation and assignment.