I deleted the tab; argh, I don't think it included the last line in your 
loop, it was strictly for the history panel to tell me how each object was 
being manipulated.  

On Tuesday, June 2, 2015 at 12:06:34 AM UTC-4, Geordie Martinez wrote:
>
> you probably have something like this I'm guessing:
>
>
> for j in range(0,5):
>     print('j=' + str(j)) # print the value of j for testing
>     # with string formatting.
>     print("string formatted: j=%s" % j)
>
>
> On Mon, Jun 1, 2015 at 8:56 PM, Geordie Martinez <[email protected] 
> <javascript:>> wrote:
>
>> it's just a string and the plus sign is tacking the other string to the 
>> end of it. concatenating.
>> there are a lot of ways to concatenate strings in python. 
>>
>> another popular way is called "string formatting". you can find some 
>> decent examples here:
>> http://www.diveintopython.net/native_data_types/formatting_strings.html 
>>
>> On Mon, Jun 1, 2015 at 8:52 PM, Christopher. <[email protected] 
>> <javascript:>> wrote:
>>
>>> You can print a loop, one thing I don't understand is the following;
>>> Suppose I have 
>>>
>>> for j in range (0,5):
>>> First thing, what is the string 'j=' + str(j)) doing, I know what the 
>>> second part of the loop is doing, converting the variable into a string or 
>>> rather the float into a string, what is the first half of the statement 
>>> saying ?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] 
>>> <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/python_inside_maya/1b6d806a-80e1-485e-96c5-525136bdb599%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/python_inside_maya/1b6d806a-80e1-485e-96c5-525136bdb599%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/56d30f06-529b-465b-9404-39ebbd432e0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to