age=[]
n=int(input("Enter no of candidates: "))
for i in range(0,n):
    age.append(int(input("Enter age: ")))
x=map(lambda y:y>=18,age)
for i in list(x):
    if i==True:
        print("Eligible candidate")
    else:
        print("Ineligible candidate")

bc586e81d284200c89a6b6cb1822adfb8130c412
<mask token>

<mask token>
for i in range(0, n):
    age.append(int(input('Enter age: ')))
<mask token>
for i in list(x):
    if i == True:
        print('Eligible candidate')
    else:
        print('Ineligible candidate')

age = []
n = int(input('Enter no of candidates: '))
for i in range(0, n):
    age.append(int(input('Enter age: ')))
x = map(lambda y: y >= 18, age)
for i in list(x):
    if i == True:
        print('Eligible candidate')
    else:
        print('Ineligible candidate')

age=[]
n=int(input("Enter no of candidates: "))
for i in range(0,n):
    age.append(int(input("Enter age: ")))
x=map(lambda y:y>=18,age)
for i in list(x):
    if i==True:
        print("Eligible candidate")
    else:
        print("Ineligible candidate")
