Get the length of an input string : Length : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Length »

 

Get the length of an input string


sentence = raw_input("Sentence: "
text_width = len(sentence)
print text_width



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Length