Re: Beginner Python Help

2016-03-19 Thread Terry Reedy
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

Re: Beginner Python Help

2016-03-19 Thread Martin A. Brown
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

Re: Beginner Python Help

2016-03-19 Thread Jussi Piitulainen
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

Re: Beginner Python Help

2016-03-19 Thread Chris Warrick
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)) >

Re: Beginner Python Help

2016-03-19 Thread Ben Finney
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>

Beginner Python Help

2016-03-18 Thread Alan Gabriel
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