Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; 'variables': 0.07; 'subject:help': 0.08; 'string': 0.09; 'python': 0.11; 'assume': 0.14; 'help!!': 0.16; 'integer.': 0.16; 'seconds.': 0.16; 'obviously': 0.18; 'variable': 0.18; 'received:10.0.1': 0.19; 'coding': 0.22; 'print': 0.22; 'format,': 0.24; 'question': 0.24; 'appreciated.': 0.29; 'class': 0.32; 'trouble': 0.34; 'subject:with': 0.35; 'basic': 0.35; 'test': 0.35; 'minutes,': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'received:10.0': 0.36; 'seconds': 0.37; 'so,': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'remove': 0.60; 'most': 0.60; 'new': 0.61; 'header:Message-Id:1': 0.63; 'charset:windows-1252': 0.65; 'minutes': 0.67; 'scott': 0.93 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.52F4353A.0088,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=Pb8hcFdd c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=O43fgCy7VCUA:10 a=G8Uczd0VNMoA:10 a=kviXuzpPAAAA:8 a=aZiTYg2X04kA:10 a=GWAI1i95PttAfwQof7sA:9 a=pILNOxqGKmIA:10 a=_QakQ2K0wz-hGpQvCU0A:9 a=_W_S_7VecoQA:10 a=MB85R812cvcrhCHz/P2OVA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=swdunning@cox.net From: Scott W Dunning Content-Type: multipart/alternative; boundary="Apple-Mail=_09E5A2C8-50BD-4CE8-AFAA-23E783A9D8A6" Subject: Python 2.7.6 help with white spaces? Date: Thu, 6 Feb 2014 18:22:00 -0700 To: python-list@python.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) X-Mailer: Apple Mail (2.1827) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391736132 news.xs4all.nl 2856 [2001:888:2000:d::a6]:56181 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65570 --Apple-Mail=_09E5A2C8-50BD-4CE8-AFAA-23E783A9D8A6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I am having trouble figuring out how to remove spaces=85. 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=85 print minutes, =93:=94, seconds I get 3 : 11 how can I get it to print with no spaces? =20 3:11 I=92m VERY new to python and coding in general and this is a question = for a class I=92m in for a test review. So, the most basic answer would = be appreciated. =20 Thanks for any help!! Scott --Apple-Mail=_09E5A2C8-50BD-4CE8-AFAA-23E783A9D8A6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 I am = having trouble figuring out how to remove spaces=85.

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=85

print minutes, =93:=94, = seconds

I get 3 : = 11

how can I get it to print with no spaces? =   

3:11

I=92m = VERY new to python and coding in general and this is a question for a = class I=92m in for a test review.  So, the most basic answer would = be appreciated.  

Thanks for any = help!!

Scott


<= /body>= --Apple-Mail=_09E5A2C8-50BD-4CE8-AFAA-23E783A9D8A6--