Check out his solutions to FizzBuzz, a programming puzzle that has become common to ask interviewees, applying idioms from many programming languages, all in Python.
Check out his solutions to FizzBuzz, a programming puzzle that has become common to ask interviewees, applying idioms from many programming languages, all in Python.
I had to write some perl-ish perl, just for fun:
foreach $i (1 .. 100) {
$str="";
$str .= "Fizz" unless $i % 3;
$str .= "Buzz" unless $i % 5;
print $str || $i, "\n";
}
Sweet 🙂