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

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...

Thursday, November 12, 2020

, ,

Example for getattr() function in python

 getattr() function in python is sued to get the value of an object attribute and it return the default value if no attribute of that object is found.Example for getattr() function in python The reason of using getattr() function because it return the default value.Now let see the basic syntax...

Wednesday, November 4, 2020

,

Example Program For enumerate() function in python

 enumerate() function in python adds counter to a iterable and returns it in the enumerate python program.Syntax : - enumerate(iterable, start=0)Two parameters are used the first one is an object which is accept the iteration.The second one is start parameters which is a starting point of counting...

Tuesday, November 3, 2020

, , ,

Example Program For Complex Function In Python - Python Program

 Well Python not only handle the real number but also handle the complex numbers with the help of Complex function in python.This complex function is so useful to manipulate mathematics problem's.complex function in python return the real number from complex number or convert the string to a complex...