Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print even numbers in python

# Python program to print Even Numbers in given range
  
start, end = 0, 50
  
# iterating each number in list
for num in range(start, end + 1):
      
    # checking condition
    if num % 2 == 0:
        print(num, end = " ")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #print #numbers #python
ADD COMMENT
Topic
Name
1+3 =