Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

odd and even python

even = []
odd = []

for number in range(50, 71):
    if number % 2 == 0:
        odd.append(number)
    else:
        even.append(number)
    
print(f"Even: {even}
Odd: {odd}")
 
PREVIOUS NEXT
Tagged: #odd #python
ADD COMMENT
Topic
Name
4+4 =