+ 1
I want to know about certain commands in string.
They could be like isspace,lstrip,rstrip and many more.
2 Respuestas
+ 5
Use the command `dir(str)` to inspect all attributes and methods of strings.
If some method seems interesting to you, read its docstring by calling the `help` function passing it as argument.
For example: `help(str.isdigit)`
Check out my code snippet on docstrings via help function:
https://code.sololearn.com/cjmZy1hUsEow/?ref=app
Hope this is helpful 😁👍🏻
0
Thanks man I will certainly try it.