""" squares.py """ import string def intro(): print "this program squares each number in a provided list" def squareEach(numbers): global squared for i in range(1, 1+n): squared = numbers * numbers def main(): global numbers global n intro() n = input("how many numbers are in the list? ") nums = raw_input("please enter the numbers in the desired list, separated by commas (1,2,3) ") string.split(nums) int(nums) squareEach(nums) print "the squared results are {}".format(squared) main()