+ 1

I want to know about certain commands in string.

They could be like isspace,lstrip,rstrip and many more.

22nd Aug 2018, 2:35 AM
Yash Suryavanshi
Yash Suryavanshi - avatar
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 😁👍🏻
22nd Aug 2018, 2:53 AM
Eduardo Petry
Eduardo Petry - avatar
0
Thanks man I will certainly try it.
25th Aug 2018, 3:12 PM
Yash Suryavanshi
Yash Suryavanshi - avatar