String adding.
Tyler Eaves
tyler at tylereaves.com
Tue Oct 17 21:44:18 EDT 2000
More information about the Python-list mailing list
Tue Oct 17 21:44:18 EDT 2000
- Previous message (by thread): String adding.
- Next message (by thread): String adding.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 17 Oct 2000 21:17:51 -0400, Mark Cunningham <mcunni01 at uoguelph.ca> wrote: >i know doing: > > >strName = 'wow' > '<' + strName + '>' > >will give you <wow> > Yep >but what about: > >intName = 3 >print '<' + intName + '>' >this gives me some illegal argument type for built-in operation.. >how would i make it give me <3>???? > The reason is that < and > are the greater than lesstan signs. use '<'+str(intName)+'>' --- Tyler Eaves Visit Ultra Coaster Central! The internet's largest repository of Ultra Coaster Tracks! http://www.ultracoastercentral.com -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
- Previous message (by thread): String adding.
- Next message (by thread): String adding.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list