Skip to Content
Menu
This question has been flagged
1 Reply
3044 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
Related Posts Replies Views Activity
2
May 23
999
2
Mar 15
8850
4
Sep 24
388
2
Sep 24
217
4
Aug 24
70760