Control-Structures-in-Python With the help of first code you can check wheter a number is even or odd. In this code I have printed sum of numbers from 1 to 50.