Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65611
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Python 2.7.6 help with white spaces? |
| Date | 2014-02-07 21:11 +0000 |
| References | (1 earlier) <504A0CAE-42E4-495E-96AA-C8A45559E139@cox.net> <A039A0DC-6D2F-4C5E-8377-5D45EBAD0151@cox.net> <E798EE80-D608-45D8-BEB4-78493FEA8DB9@cox.net> <851tzfeabo.fsf@benfinney.id.au> <CADTJTsEZJJGv5PT-rkNKESFyLVBGmzAATTRtCxVH07gO74+gBQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6499.1391807522.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Python 2.7.6 help with white spaces? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-07 21:11 +0000
Re: Python 2.7.6 help with white spaces? Asaf Las <roegltd@gmail.com> - 2014-02-07 13:45 -0800
Re: Python 2.7.6 help with white spaces? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-07 22:09 +0000
csiph-web