Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

Is there an easier way without having to call the str() method?                            

Author Name Status Posted Time
Shirly Selkirk 3/24/2008 10:02:37 PM
Author is Offline

Hi friends,

After getting raw_input from the user, I want to print a sentence that ends in an integer and then the "."
character. Of course, if I print using a comma (,) I don't get an error but there is an ugly space between the integer and the period. But if I try "+"
then I obviously get a str/int concatenation error.

One way to solve this is to convert the int into a str and then "+"
works. But is there an easier way without having to call the str() method?

 

Subject Author Status Date

Re: Is there an easier way without having to call
the str() method?

Yash Patel 3/25/2008 12:24:05 AM

Re: Python

Shirly Selkirk 3/25/2008 12:25:41 AM

Re: So why not use the str() conversion?

Sardha Henry 3/25/2008 12:33:28 AM

Re: Is there an easier way without having to call
the str() method?

Poicramuikri Cevilto 3/25/2008 12:28:03 AM

Re: Thanks!

Shirly Selkirk 3/25/2008 12:29:05 AM

Re: Is there an easier way without having to call
the str() method?

Dan D'Souza 3/25/2008 12:31:55 AM

Re: Is there an easier way without having to call
the str() method?

Mocco Tokkendo 3/25/2008 12:35:06 AM

Re: Thanks everybody!

Shirly Selkirk 3/25/2008 12:38:47 AM
Related Forums
Reply to Hesus!!!
Template Tutorials
Yes, the Site Only!!
The PHP Zend File had been Cracked!!!
Any Help with Coldfusion??





Home | About Us | Site Map | Privacy Policy