I am currently having problems completing this task in Automating Boring Things:

My code is:
def collatz(number): global seqNum if (seqNum % 2 == 0): return seqNum // 2 elif (seqNum % 2 == 1): return 3 * seqNum + 1 print('What number would you like to use?') seqNum = input() number = int(seqNum) i = number while i > 1: collatz(seqNum) print(number)
And I get this error:
"Traceback (most recent call last): File "C:/Users/Administrative/AppData/Local/Programs/Python/Python36-32/collatzSeq.py", line 15, in <module> collatz(seqNum) File "C:/Users/Administrative/AppData/Local/Programs/Python/Python36-32/collatzSeq.py", line 3, in collatz if (seqNum % 2 == 0): TypeError: not all arguments converted during string formatting"
I know that I don’t know how I wrote my code, but I don’t understand what it is. Any help is appreciated!
I also use python 3.
source share