Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
123
Sign in to test your solution.
def even_odd(number):
"""
>>> even_odd(886328712442992)
(10, 5)
>>> even_odd(10515)
(1, 4)
>>> even_odd(145)
(1, 2)
"""
def step(number):
"""
>>> step(886328712442992)
10515
>>> step(10515)
145
>>> step(145)
123
"""
def steps(number):
"""
>>> steps(886328712442992)
3
>>> steps(1217637626188463187643618416764317864)
4
>>> steps(0)
2
>>> steps(1)
5
>>> steps(2)
2
>>> steps(3)
5
"""
if __name__ == '__main__':
import doctest
doctest.testmod()