This course is archived · This course is now in read-only mode. You can’t register or make new submissions anymore, but your previous work and results are still available.

eerste evaluatie (groep 2) 0 of 2 activities solved
  1. The Ghent University prime number Not yet solved
  2. 123 Not yet solved
Next series eerste evaluatie (groep 3)
eerste evaluatie (groep 2)

123

This course is archived, so you can no longer hand in solutions.

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()