Useful python help command

help( )  : command is used to get details of function or statement from python inbuild library. Eg .                print

help(' ')  : To get information about operators . Eg . return

To get info about the variable used ,  import the module and get help

eg . import math

a = 4

help(a)

to get the type of the variable use : type ( ) . Eg type(a)

No comments:

Post a Comment