Print even numbers from 1 to 10

 for i in range(1, 11):

    if i % 2 == 0:

        print(i)


Comments

Popular posts from this blog

Simple Python Program Code for Snake Game

Iris Flowers Classification ML Project with Code

Linear Regression Model for House Price Prediction in Python