Dir
and help
are two must-know functions in Python. Dir
will provide us with a list of methods available on the object of interest while help
will inspect a specific method we would like to use.
Learning about them in this lesson will help you understand what functions and methods are available for use as well has how to use them.
Is there any difference between double quote and single quote strings in python? They both are strings objects?
Is there any difference between double quote and single quote strings in python? They both are strings objects?
type("a") <class 'str'>
type('a') <class 'str'>
Nope! Unlike some other languages, there is not any difference that I'm aware of!