RE: [Golfing] Collatz Conjecture 08-21-2015, 04:26 PM
#2
What exactly do we need to print, if anything?
Anyways, here's a straightforward Python solution (45 Bytes).
You're lucky Stuck has no while-loops ;P
Anyways, here's a straightforward Python solution (45 Bytes).
Code:
n=input()
while~-n:n=[n/2,3*n+1][n%2];print nYou're lucky Stuck has no while-loops ;P
![[Image: CDUAq9d.png]](http://i.imgur.com/CDUAq9d.png)





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)