Q. Predict the output:


ages = [11, 14, 15, 17, 13, 18, 25]

    print(ages)

Elig = [x for x in ages if x in range(14, 18)]

print (Elig)


Answer =

Output:-

Error, because indentation in second line.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post