print even numbers in python

Solutions on MaxInterview for print even numbers in python by the best coders in the world

showing results for - "print even numbers in python"
Ivanna
16 Jun 2019
1# Print even numbers python
2
3lower_limit = 0
4max_limit = 100
5for i in range(lower_limit, max_limit):
6  if i%2 == 0:	# even numbers are divisible by 2. i%2 will give the remainder when i is divided by 2. if i is even, the remainder will always be 2.
7    print(i)
8
9#