On 9/1/18 1:11 PM, moha...@gmail.com wrote:
All,

I m trying to run this small script to find the lowest of the given array of 
numbers. The script works fine for various combination of inputs but fails in a 
weird way for a particular set of inputs, can anyone point the mistake in the 
script and the behavior.

Script

x = input ("Enter the numbers separated by space and press ENTER :")

Think about what x is here, and what x.split does.

x = x.split(" ")

Now think about what x is again, and recall that Python is strongly typed.

Dan
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to