Python hasattr() Function The python hasattr() function returns true if an object has given named attribute. Otherwise, it returns false. Signature hasattr(object,…
built in
-
-
Python sum() Function As the name says, python sum() function is used to get the sum of numbers of an iterable, i.e.…
-
Python any() Function The python any() function returns True if any item in an iterable is true, otherwise it returns False. Note…
-
Python iter() Function The python iter() function is used to return an iterator object. It creates an object which can be iterated…
-
Python tuple() Function Python tuple() function is used to create a tuple object. Signature tuple(iterable) Parameters Iterable: It is a sequence, collection,…
-
Python ascii() Function The python ascii() function returns a string containing a printable representation of an object and escapes the non-ASCII characters…
-
Python len() Function The python len() function is used to return the length (the number of items) of an object. Signature len(object)…
-
Python type() Function Python type() returns the type of the specified object if a single argument is passed to the type(). If…
-
Python bin() Function The python bin() function is used to return the binary representation of a specified integer. A result always starts…
-
Python list() Function The python list() creates a list in python. Signature list(iterable) Parameters iterable (optional) – An object that can be…