[Tutor] Inputting elements of a list
vanam
vgvr620034 at gmail.com
Mon Jan 22 09:47:23 CET 2007
For standard input from the keyboard raw_input will be used for string and
input for number.Suppose i want to input a list of some elements how could
it be done. Actually i am looking for sorting out elements in a
list.Belowis the given script
list = [45,4,5]
list.sort()
for y in list:
print y ->this would sort out elements in that list. my question is in
the above script all the elements that list carry are defined i want to
input some elements in the list how could it be done
--
Vanam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070122/ccba2832/attachment.htm
More information about the Tutor
mailing list