Collatz Questions
Ad
Maximum Collatz length in Python, but output is not correct
This is my first time posting to stackoverflow. i'm trying to solve this problem here:
Code to simulate Collatz Conjecture is showing 1 as an even number
My code is the following output_even = "even: " output_odd = "odd: " if varnum % 2 == 0: varnum /= 2
Collatz conjecture function in Python3 calling itself when being assigned to a variable
I'm reading the book "automate the boring stuff" by al sweigart to start learning python (it is free online, so you can check it if
Ad
Blog Categories
Ad