I'm trying to give python a list of numbers like this (5 6 7) and I want it to square each number (or as many numbers as I input). I'm trying out a list comprehension on this. I'm not sure where I'm going wrong. Any help would be great.
def squareEach(nums):
nums = input("Enter the numbers: ")
numbers = list(nums)
square = [i*i for i in numbers]
print square
squareEach()