2 ms·
for i in range(1,101): print "FizzBuzz" if i % 15 == 0 else "Fizz" if i % 3 == 0 else "Buzz" if i % 5 == 0 else str(i) derp, works better of course Though I c
by jaegerpicker 14y ago
for i in range(1,101): print "FizzBuzz" if i % 15 == 0 else "Fizz" if i % 3 == 0 else "Buzz" if i % 5 == 0 else str(i)
derp, works better of course
Though I can't find out the score the page to test the code seems to be inaccessible if you are signed in. It just redirects you to the signed in page and the signout link is broken. Still it's a fun and cool idea
- neeleshs 14y agofor i in range(1,101):print i%15==0 and 'FizzBuzz' or i%3==0 and 'Fizz' or i%5==0 and 'Buzz' or i has a score of 102
- crodjer 14y agoRedirects issue fixed. Can you try it now?
- jaegerpicker 14y agoWorks to login having trouble submitting however now