I need to add one to all even and all odd numbers in the list but whenever i run it it just prints the same random list twice. Most recent output:
[3, 58, 40, 50, 21, 33, 25, 20, 37, 27, 21, 37, 11, 30, 75, 16, 95, 18, 37, 55]
[3, 58, 40, 50, 21, 33, 25, 20, 37, 27, 21, 37, 11, 30, 75, 16, 95, 18, 37, 55]
This is my code:
import random
randomlist = []
for i in range(20):
randomlist.append(random.randrange(1,101))    
print(randomlist)
def make_odd(randomlist):
    for i in range(len(randomlist)):
        if i % 1 != 0:
            randomlist.append(i+1)
        
        return randomlist
print(randomlist)
 
     
     
    