Python Equivalent:
>>> for i in range(0, 9, 3):
>>> print(i)
0
3
6
9
How can this be replicated in Ruby?
What would be the most Ruby-ish way to preform this operation?
Python Equivalent:
>>> for i in range(0, 9, 3):
>>> print(i)
0
3
6
9
How can this be replicated in Ruby?
What would be the most Ruby-ish way to preform this operation?