Challenge 7: Lists of Even and Odd Numbers

In this challenge, you are required to create a list containing even and odd numbers.

Problem Statement

Given a ListofEvenOdds() function, create a list comprehension with all the even numbers from 0 to 20, and another one with all the odd numbers.

Input

Two empty lists

Output

List 1 with even numbers

List 2 with odd numbers

Get hands-on with 1200+ tech skills courses.