Does anyone know strings method? len() lower() upper() str()


#1



Replace this line with your code.


#2

yea, why? You can also find more about it in the official python docs:

https://docs.python.org/2/library/string.html


#3

len() returns an integer value, the length of any string that is passed in its arguments.

lower() returns a string value, the same text as the string passed in its arguments, only lowercase

upper() returns a string value, the same text as the string passed in its arguments, only uppercase

str() casts another variable type into a string variable, taking things like integers and changing their type to become a string

The Python Documentation also has this information, likely better worded than I do.

tutorialspoint also has a good tutorial on strings in Python, including a list of all string functions.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.