[Tutor] How to run same lines of code in different order at runtime
George
cmgcomsol at gmail.com
Sat Jul 18 18:59:46 CEST 2015
On Friday 10 July 2015 02:40 PM, Alan Gauld wrote:
> On 10/07/15 01:29, Alan Gauld wrote:
>
>> It would be easierv to access the last element directly rather than
>> looping:
>>
>> lastCity = route[-1]
>
> Oops. looping -> calculating.
>
Thank u Steven and Alan,
I am sorry to reply late. Your replies were insightful and particularly
Steven's which was more specific to my problem, although i had a slight
difficulty in understanding them. I will get back to you with the
problem on graph with pylab. Although i am also looking into another
solutions to the same problem (me a Python newbie and programming
hobbyist). i will do some programming and will get back to you with my
results.
Thanks again.
George.
More information about the Tutor
mailing list