Hello,
I am working on a code that takes the users input ( a string of digits) from the command line and prints out the median number. I am trying to accomplish this by:

from sys import argv

nums = argv[1:]


for index, value in enumerate(nums) :
nums[index] = float(value)

print nums[1:] + nums[:1] / 2

I keep getting the error:
type error:...