for n in range(1,10):print(3*n+1if n%2else n//2)# your code goes here
Standard input is empty
4 1 10 2 16 3 22 4 28
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!