Introduction to Programming using Python 1st Edition

Published by Pearson
ISBN 10: 0132747189
ISBN 13: 978-0-13274-718-9

Chapter 10 - Lists - Section 10.2 - List Basics - Check Point - MyProgrammingLab - Page 324: 10.6

Answer

[30, 2] [0, 2, 4, 6, 8] [10, 8, 6, 4, 2]

Work Step by Step

[x for x in list1 if x > 1] will give the output as written in the print statement: -$[30 , 2]$ [x for x in range(0, 10, 2)] will give the output when written in the print statement -$[0,2,4,6,8]$ [x for x in range(10, 0, -2)] will give the output as written in the print statement -$[10,8,6,4,2]$
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.