+1 :)
On Thursday, 12 October 2017 11:50:02 UTC+11, damonshelton wrote:
>
> I would suggest utilizing keywords rather than order - also a nice trick
> is expanding locals to keep from having to specify the keywords repeatedly
>
> def sayHello(name=None, age=None, weight=None ):
> print( "name: {name} age:{age} weight:{weight}").format(**locals())
>
> sayHello("Allen", 20, 150)
>
>
>
>
--
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/9ac0a843-25ba-4c98-91e2-3ad75f3a4231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.