Write a list comprehension for finding even numbers from 0 to 11
AnswerBot
5mo
List comprehension to find even numbers from 0 to 11
Use list comprehension with condition for even numbers
Syntax: [x for x in range(12) if x % 2 == 0]
Example: ['0', '2', '4', '6', '8', '10']
Help your peers!
Add answer anonymously...
Popular interview questions of Senior Associate
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app