[Tutor] convert an integer number to string.

Steven D'Aprano steve at pearwood.info
Mon Feb 20 04:36:58 EST 2017


On Sun, Feb 19, 2017 at 11:05:35PM -0300, Juan Pablo Valladares wrote:
> hi friend.
> 
> i send you this email for say you you have a great project with the python correctos, i dont know if you can help me with one code i try to make  functionality but not work i wish can you help me, thank you and than you again, to following the line with the error:
> 
> for i in range (10):
>             cmds.button(label ="button", + srt(i+1))

I see two errors:

You write "srt" instead of str.

Comma after "button" is not needed.

    cmds.button(label ="button" + srt(i+1))

may be better.



-- 
Steve


More information about the Tutor mailing list