This thread will have Python Examples
Here is an interesting ball bouncing example in Mel , in Maya using the "Expressions" editor,
https://youtu.be/UZTuKD04vRY
See here , to show the expresions editor https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-251640EA-AACC-4F1B-A341-297F0F4CEFE4-htm.html.
Mayazoo Snake Script !! Let's have a go at this ;-) !
Beginning Python for creatives
sees attachments
For the end of Session 3. And some half finished pseudo-code.
Introduction to Classes.
Kia Ora
Here is a script that demonstrates the definition of a Class called Spheres that makes Spheres.
Kia Ora tatou
Here is script you might consider as a template for writing a script, that you might use to import , places , render(?) etc, some obj files into Maya, using the cmds library and the Glob ( or is it Blob) library?