Skip to content

Commit

Permalink
Merge pull request #38 from Aravinth-T/master
Browse files Browse the repository at this point in the history
Range update on odd numbers function
  • Loading branch information
dhavalsays authored Jul 8, 2021
2 parents f167a92 + fd97ca9 commit 6b8a495
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data_structures/2_Arrays/Solution/3_odd_even_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

odd_numbers = []

for i in range(max):
if i%2 == 1:
for i in range(1, max):
if i % 2 == 1:
odd_numbers.append(i)

print("Odd numbers: ",odd_numbers)
print("Odd numbers: ", odd_numbers)

0 comments on commit 6b8a495

Please sign in to comment.