Chicago's bike sharing data challenge
divvybikes.com1 ポイント投稿者 mdlthree0 コメント
n,f,b= 100,3,5
a = [str(i) for i in range(1,n+1)]
for i in range(n/f):
a[(i+1)*(f)-1] = 'Fizz'
for i in range(n/b):
a[(i+1)*(b)-1] = 'Buzz'
for i in range(n/(f*b)):
a[(i+1)*(f*b)-1] = 'FizzBuzz' A: What do you do?
B: I am a ———.
A: Oh, I hate that.
Ideally this response would be limited to such occupations as “serial killer”, “child pornographer”, and maybe “politician”, but “mathematician” seems to work. It is common enough that many of us are reluctant to identify ourselves as mathematicians. Paul Halmos is said to have told outsiders that he was in “roofing and siding”!