Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
buzer
43 days ago
|
parent
|
context
|
favorite
| on:
Fizz Buzz without conditionals or booleans
Other would be to use goto (though Python doesn't have it) & introduce something that will panic/throw exception, like creating variable with value 1/(max-i).
pinusc
43 days ago
[–]
Recursion would work for that, you don't need goto.
The division by zero trick is pretty good too!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: