Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------------------------------[[String Methods]]------------------------------------------------------------#
- # len() ---> Return the length of the text.
- # strip(), lstrip(), rstrip() ---> Remove the specific characters like whitespaces that occur continously after each other.
- # capitalize(), title(), istitle() ---> Captialize will capital the first letter, title will capital each letter of new word and letters after numbers, istitle will check if its in title format.
- # zfill(len) ---> Fill the numbers as specific format.
- # upper(), lower() ---> Uppercase or lowercase all text.
- # split(), rsplit() ---> Split text from right or left into list.
- # center(char) ---> Center the text from two sides.
- # count(word) ---> Count the occurances of specfic word.
- # swapcase() ---> Swap cases from Capital to Small and vice versa.
- # startswith() ---> Checks if text starts with specific character.
- # endswith() ---> Checks if text ends with specific character.
- # index(), find() ---> Index returns error if not found, Find returns -1 if not found.
- # rjust(), ljust() ---> Justify text from right or left with specific charcter.
- # splitlines() ---> Splits text on end of lines.
- # expandtabs() ---> Controls the spaces with \t escape character.
- # isspace() ---> Checks if the specific character is space.
- # islower() ---> Checks if the specific character is capital.
- # isupper() ---> Checks if the specific character is small.
- # isidentifier() ---> Checks if text is able to be a variable name.
- # isalpha() ---> Checks if text include alphabits charcters only.
- # isnum() ---> Checks if text include numbers charcters only.
- # replace(old val, new val, count) ---> Replaces old value into new value with specific number of times.
- # "seperator".join(list || tuple) ---> Joins list or table items with specific seperator.
- # ------------------------------------------------------------------------------------------------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement