S = sum(x for x in range(1, 500) if x % 2 != 0 and x % 3 == 0)print(S)
Standard input is empty
20667
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!