On 3/18/2016 3:04 AM, Alan Gabriel wrote:
Hey there,
I just started out python and I was doing a activity
> where im trying to find the max and min of a list of numbers i inputted.
This is my code..
num=input("Enter list of numbers")
input returns a string
list1=(num.split())
list1 is
Greetings Alan and welcome to Python,
>I just started out python and I was doing a activity where im
>trying to find the max and min of a list of numbers i inputted.
>
>This is my code..
>
>num=input("Enter list of numbers")
>list1=(num.split())
>
>maxim= (max(list1))
>minim= (min(list1))
>
>pri
Terry Reedy writes:
> On 3/18/2016 3:04 AM, Alan Gabriel wrote:
...
>> list1=(num.split())
>
> list1 is a list of strings
>
>> maxim= (max(list1))
>> minim= (min(list1))
>
> min and max compare the strings as strings, lexicographically
>
>> print(minim, maxim)
...
> You failed to convert strin
On 18 Mar 2016 08:05, "Alan Gabriel" wrote:
>
> Hey there,
>
> I just started out python and I was doing a activity where im trying to
find the max and min of a list of numbers i inputted.
>
> This is my code..
>
> num=input("Enter list of numbers")
> list1=(num.split())
>
> maxim= (max(list1))
>
Alan Gabriel writes:
> I just started out python and I was doing a activity where im trying
> to find the max and min of a list of numbers i inputted.
Welcome to Python!
As a Python beginner you will be interested to join the ‘python-tutor’
forum https://mail.python.org/mailman/listinfo/tutor>
Hey there,
I just started out python and I was doing a activity where im trying to find
the max and min of a list of numbers i inputted.
This is my code..
num=input("Enter list of numbers")
list1=(num.split())
maxim= (max(list1))
minim= (min(list1))
print(minim, maxim)
So the problem is th