def collatzCount(number): for n in range (1,number): collatzConjecture(n) print("\n") def collatzConjecture(n): print(n, end = ' ') if n is 1: return 1 else: if (n%2): return collatzConjecture(int((n*3)+1)) else: return collatzConjecture(int(n/2)) raise AssertionError #main for i in range (1,2): print("") collatzCount(100)