Re: [Tutor] Inputting elements of a list

2007-01-22 Thread Bob Gailer
Luke Paireepinart wrote: > vanam wrote: > >> 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.Below is the given s

Re: [Tutor] Inputting elements of a list

2007-01-22 Thread Luke Paireepinart
vanam wrote: > 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.Below is the given script > list = [45,4,5] > list.sort(

Re: [Tutor] Inputting elements of a list

2007-01-22 Thread Alan Gauld
"vanam" <[EMAIL PROTECTED]> wrote > For standard input from the keyboard raw_input will be used for > string and > input for number. input can read more than numbers. It will take whatever you type and try to evaluate it as a Python expression. That's why input is so dangerous and should be avoi

[Tutor] Inputting elements of a list

2007-01-22 Thread vanam
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 -