4 ms·
No, it's not a US thing. In fact, it's a UK thing -- I believe popularized by Imran Ghory: https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-
by throwaway09223 4y ago
No, it's not a US thing. In fact, it's a UK thing -- I believe popularized by Imran Ghory: https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-de...
- anigbrowl 4y agoThe 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://en.wikipedia.org/wiki/Fizz_buzz https://www.amazon.com/Fizz-Buzz-Spoken-Numeracy-Games/dp/1855033526 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.
- CM30 4y agoThanks. I genuinely never encountered it in my searches for a developer/software engineer job, so I was just kinda curious. Interesting it was popularised by someone over here.