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 323: 10.3

Answer

lst=[30, 1, 40, 2, 0, 1]

Work Step by Step

The following operations can be performed, with their purpose described in the description section to their right: -lst.append(40) will add 40 at the end of list -lst.insert(1,43) will add 1 and 43 -lst.extend(1,43) will extend the values of 1 and 43 -lst.remove(1) will eliminate 1 from list -lst.pop() will delete last inserted element -lst.sort() will sort down the list
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.