I'd like the below to be a single line if possible.

hours = metrics.totaltime/3600000
minutes = (metrics.totaltime - 3600000*hours)/60000
seconds = (metrics.totaltime - 3600000*hours - 60000*minutes)/1000

Would it be possible to simplify this with a generator expression e.g.

total_time = tuple((...))
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to