Showing posts with label python function program. Show all posts
Showing posts with label python function program. Show all posts

Tuesday, December 1, 2020

,

Example program for map() function in python

 map() function in Python applies a given function to every item of an iterable and give a list of results.Syntax:- map(function, iterable, ...)Parameter For map() function in python map() function use two Parameter these are follow : -  function is a first Parameter map() function...

Monday, November 16, 2020

, , ,

Example program for super function in python

 super() function in python return the proxy object it's also a temporary object of the superclass and this object help us to access the method of base class.Super function has two use :-This function Working with Multiple InheritanceHelp us to avoid base class name explicitlyExample of super function...

Saturday, November 14, 2020

, ,

Example program for setattr() function in Python

setattr() function in Python use to set the value of an attribute.setattr() function in Python Syntax : - setattr(object, name, value) If you want to read the object then use the getattr() function.Parameters For setattr():- It takes three parameters and these are:-Object : - the object...