Write a Python expression that uses the list even_numbers below and evaluates to the list [4].
or produces the list to [4]
even_numbers = [0, 2, 4, 6, 8, 10, 12]
#to prodduce list till element 4
even_numbers[:3]#[4] is element number 3, and at index 2. So we
need to select indices 0,1,2
#in [:3], 3 is exclusive. It means all posible indices less than 3,
which are 0,1,2
Get Answers For Free
Most questions answered within 1 hours.