Exercise: List Comprehension I
Here, we use list comprehension to double the integers in the
numbers
list. However, there's something missing. Fix the code to get the correct output. Hint: The mistake is in the expression part of the list comprehension. Remember the syntax: [expression for item in iterable]
.Premium
Python
Setting up Python environment...
Output