Saturday 2 January 2021

Some Most Useful functions in python for anyone who is getting started

For any language learner who is getting started, learning ways to unblock oneself becomes one of the most important part to keep self encouraging.

type of any variable

>>> st="Narendran"
>>> type(st)
<class 'str'>
>>> num = 123
>>> type(num
... )
<class 'int'>
>>>

help with type

help(str)

dir with any variable

dir(st)

No comments:

Post a Comment

Meditation and 5 L

Relaxation and Laughter distinguishes being human and human being . Relaxation is meditation. May be it is a lie, but a beautiful one, whic...