Generate List of Even Numbers

# Introduction In this lab, you need to write a program that takes a number as input and returns a list of all even numbers up to that number using list comprehension, or an empty list if the input number is less than or equal to 1.

|
60 : 00

Click the virtual machine below to start practicing