Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Even numbers in Python

count1 = 0
for even_number in range(1, 20):
    if even_number % 2 == 0:
        count1 += 1
        print(even_number)
print(f"we have {count1} even numbers")
 
PREVIOUS NEXT
Tagged: #Even #numbers #Python
ADD COMMENT
Topic
Name
6+6 =