index
:
workshops/.git
master
Material for the Python for Scientific Computing workshops
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
day1
/
exercise
/
collatz.py
blob: 2b980d7e52ae2dc09f42c62c067ce380281d2bc2 (
plain
)
1
2
3
4
5
6
7
a = -1 while a > 1: print a if a % 2: a = a * 3 + 1 else: a /= 2