Python 2.7.6 help with white spaces?
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Feb 7 16:11:37 EST 2014
On 07/02/2014 20:45, Dante Signal31 wrote:
>
> Just one more solution for original question, surely not the best but
> only to cover all possibilities:
>
> print("{0}:{1}".format(minutes,seconds))
>
> --
> Dante
Fancy wasting two whole characters when this will suffice
print("{}:{}".format(minutes,seconds)) :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
More information about the Python-list
mailing list