N Even numbers in python

Description

Python program to get input n and print n even numbers.
Input:
7
Output:
2 4 6 8 10 12 14

Solution

n=int(input("Enter n value:"))
i,j=0,2
while(i<n):
    print(j,end=" ")
    j=j+2
    i=i+1

Explanation

while(i