len() function : len « Buildin Function « Python






len() function

len() function

message = raw_input("Enter a message: ")

print "\nThe length of your message is:", len(message)


           
       








Related examples in the same category

1.Built-in function len(): get the length of a listBuilt-in function len(): get the length of a list
2.Built-in function len() returns the length of a stringBuilt-in function len() returns the length of a string