how to texture an object

hi, i was trating to texture an object in blender using python but, i cannot do the appropiate steps to achieve my goal. can anybody help me, the tutorials are not usefull because some are old. thx