This tutorial is an introduction to scripting and it shows how to write scripts that use Blender’s powerful features.
The tutorial starts by showing how to use the interactive Python console to enter single commands. The tutorial shows how to use the built in text editor to create a script, it shows how to write a script that makes a simple model of a monkey robot.
Python is a fully featured object oriented language, it will be a big challenge for a beginner, best of luck.
This is the script that is developed -
import bpy
#body
bpy.ops.mesh.primitive_cube_add()
bpy.ops.transform.resize(value=(1.2, 0.8, 1.5))
#head
bpy.ops.mesh.primitive_monkey_add()
bpy.ops.transform.translate(value=(0, -0.3, 2))
#arms
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(2, 0, 0))
bpy.ops.transform.resize(value=(0.5, 0.5, 1.5))
bpy.ops.transform.rotate(value=-0.523599, axis=(0, 1, 0))
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(-2, 0, 0))
bpy.ops.transform.resize(value=(0.5, 0.5, 1.5))
bpy.ops.transform.rotate(value=0.523599, axis=(0, 1, 0))
#legs
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(0.7, 0, -3.5))
bpy.ops.transform.resize(value=(0.5, 0.5, 2))
bpy.ops.object.duplicate_move(TRANSFORM_OT_translate={"value":(-1.4, 0, 0)})
For more tutorials and resources goto my website -
http://blender.freemovies.co.uk