str
dz / python / docs / stdtypes / strNode Tree
Nodes
isalnum | |
content | str.isalnum(): Return True if all characters in the string are alphanumeric and there is at least one character, False otherwise. A character c is alphanumeric if one of the following returns True: c.isalpha(), c.isdecimal(), c.isdigit(), or c.isnumeric(). |
children | python/flashcards/alphanumeric |
parents | leetcode/problems/125_valid_palindrome, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.isalnum |
isalpha | |
content | str.isalpha(): Return True if all characters in the string are alphabetic and there is at least one character, False otherwise. |
children | python/flashcards/alphabetic |
parents | leetcode/problems/125_valid_palindrome, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.isalpha |
isnumeric | |
content | str.isalpha(): Return True if all characters in the string are alphabetic and there is at least one character, False otherwise. |
children | python/flashcards/numeric |
parents | leetcode/problems/125_valid_palindrome, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.isnumeric |
lower | |
content | Return a copy of the string with all the cased characters converted to lowercase. |
children | upper, python/flashcards/lowercase |
parents | leetcode/problems/125_valid_palindrome, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.lower |
upper | |
content | Return a copy of the string with all the cased characters converted to uppercase. |
children | python/flashcards/uppercase |
parents | lower, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.upper |
format | |
content | str.format(): produces formatted string |
parents | leetcode/problems/67_add_binary, python/docs/stdtypes/str |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.format |
zfill | |
content | str.zfill(widht): return copy of the string left-filled with ascii '0' digits to make string of lenght =width=. |
parents | leetcode/problems/67_add_binary |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.zfill |
split | |
content | split |
remarks | if no delimiter provided, the algorithm changes and will split on variable whitespace |
hyperlink | https://docs.python.org/3/library/stdtypes.html#str.split |