Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65570
| From | Scott W Dunning <swdunning@cox.net> |
|---|---|
| Subject | Python 2.7.6 help with white spaces? |
| Date | 2014-02-06 18:22 -0700 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6467.1391736132.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
I am having trouble figuring out how to remove spaces…. Assume variables exist for minutes and seconds. Each variable is an integer. How would you create a string in the format, 3:11 with no spaces. where 3 is minutes and 11 is seconds. Obviously when I… print minutes, “:”, seconds I get 3 : 11 how can I get it to print with no spaces? 3:11 I’m VERY new to python and coding in general and this is a question for a class I’m in for a test review. So, the most basic answer would be appreciated. Thanks for any help!! Scott
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Python 2.7.6 help with white spaces? Scott W Dunning <swdunning@cox.net> - 2014-02-06 18:22 -0700 Re: Python 2.7.6 help with white spaces? Roy Smith <roy@panix.com> - 2014-02-06 20:25 -0500 Re: Python 2.7.6 help with white spaces? Scott W Dunning <swdunning@cox.net> - 2014-02-06 21:12 -0700 Re: Python 2.7.6 help with white spaces? Roy Smith <roy@panix.com> - 2014-02-06 23:26 -0500
csiph-web