[Tutor] Creating Lists
niyanaxx95 at gmail.com
niyanaxx95 at gmail.com
Wed Nov 12 05:27:33 CET 2014
Create a list of 20 unique (no number appears twice) random integers with values
between 1 and 45. Print the list of random numbers with the header “Random list of 20
numbers”.
Find the largest number in the list. Remove the largest number from the list. Find the
smallest number in the list. Remove the smallest number from the list. Print the length
of the list with the header “The length of the list is: ”
Print the list with the header “The list with the largest and smallest number removed: ”
Sent from Windows Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141112/b09120f7/attachment.html>
More information about the Tutor
mailing list