r/PythonLearning • • Sep 02 '25

Help Request HELP ME

why is this code is not working

'''
Task 3 — Odd numbers 1–19

Make a list of odd numbers from 1 to 19 (use a step).
Self-check: 10 numbers, all odd.
'''
odd_numbers = []
for value in range(1, 20, 2):  
# Using step of 2 to get odd numb
    odd_numbers.append(value)
if(odd_numbers % 2 == 0)
print(odd_numbers)    
0 Upvotes

12 comments sorted by

View all comments

1

u/Minute_Journalist593 Sep 03 '25

bro have you ever heard that odd number is divided by 2 and reminder is 0 and after if block you have missed : and after if your indentation is missing