Re: [Tutor] Using sorted in Python 3.3.5

2015-11-19 Thread Alan Gauld
On 19/11/15 15:31, Greg Christian wrote: I’m trying to sort a list of tuples based on the second item in the tuple. When I run this in IDLE I get the correct output; however, when running inside of a program, and calling the counter() function, sorted does not seem to work? Any ideas on why th

Re: [Tutor] Using sorted in Python 3.3.5

2015-11-19 Thread Mark Lawrence
On 19/11/2015 15:31, Greg Christian wrote: I’m trying to sort a list of tuples based on the second item in the tuple. When I run this in IDLE I get the correct output; however, when running inside of a program, and calling the counter() function, sorted does not seem to work? Any ideas on why

[Tutor] Using sorted in Python 3.3.5

2015-11-19 Thread Greg Christian
I’m trying to sort a list of tuples based on the second item in the tuple. When I run this in IDLE I get the correct output; however, when running inside of a program, and calling the counter() function, sorted does not seem to work? Any ideas on why this works in IDLE and not in program would b