num = int(input())

nums = []

for i in range(1,num+1):
    if i % 2 == 0:
        nums.append(i * 2)
    else:
        nums.append(i)
print(nums)
    
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: