problem with active ob or mat ?

i tried to get info from conolse and i should be able to print the active but

i did something wrong here

import bpy

obj_act = bpy.context.active_object
me =

print (‘Active object =’, obj_act )
print (’ dir =’,dir(obj_act))
print (’ active ob active mat =’,

it does not recognise the active mat

how can i corect this ?

but i can print these

print (‘Active object =’, obj_act )

matactiv = obj_act.active_material
print (‘Active Material =’, matactiv )