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