Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python make a list of odd numbers

odd_list = []
for a in range(10):
    if a % 2 != 0:
        odd_list.append(a)

print(odd_list)
 
PREVIOUS NEXT
Tagged: #python #list #odd #numbers
ADD COMMENT
Topic
Name
6+3 =