maximum = int(input())for number in range(1, maximum + 2): if(number % 2): print(number)
6
1 3 5 7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!