September 19th, 2007, 09:31 AM
Using 'input' to populate a list
Is there a way to populate a list using either the 'input' or 'raw_input'? What I am trying to do is take a user input and add to a list so that it can be used in a program to give the average of the numbers given by the user.
Thanks in advance.
September 19th, 2007, 12:16 PM
You could either split raw input and take each word into a list, or maybe something like
September 19th, 2007, 03:25 PM
Thanks for the info, but i am very new to programming, less than one month and I am unfamiliar with import sys, sys.stdin.readlines() statements. I will look them up using the help() function though. Once again thanks!!