Look at the code you want to "decypher":
text = 'Hello World'
print len(type(text))
That's easy to work out: it will give you and error because you are missing the compulsory brackets around the parameters to the
print
function. To get it to run, you need to add them:
text = 'Hello World'
print(len(type(text)))
And even then, as Richard has said, what
type
returns doesn't have a length - it's a "description of what an object can do and what properties it can have" so again, you will get an error message. It's the same as asking "What colour is a car?" - that's not a valid question because not all cars are the same colour: "this car" is green, "that car" is red, "my car" is grey, "your car" is black.