[Tutor] convert an integer number to string.

Alan Gauld alan.gauld at yahoo.co.uk
Mon Feb 20 04:57:08 EST 2017


On 20/02/17 09:36, Steven D'Aprano wrote:

> Comma after "button" is not needed.
> 
>     cmds.button(label ="button" + srt(i+1))
> 
> may be better.

and
     cmds.button(label ="button" + str(i+1))

better still :-)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list