This question has been flagged
1 Reply
2907 Views

Hello, 

This my code : 

body = 'test : ',str(self.zip)

print body

when the code is executed i have : 

('test : ', '7000')

How can i do for just have this : 

test : 7000 

Thanks, 

Avatar
Discard
Best Answer

like this:

body = 'test : '+str(self.zip)

or this:

body = 'test : %s' % str(self.zip)

or this:

body = ' '.join(['test : ',str(self.zip)])

or another not listed way that work

Avatar
Discard