program, follow these steps:
Read moreHow does Python calculate net salary?
Write a python program to calculate net salary if the user input the basic salary(basic) and calculate the DA where DA = 10% of basic salary, HRA =10% of basic salary, total salary(tsalary)=basic +DA+HRA and deduct the 12% PF on. Total salary and net salary=tsalary-PF
Read moreWhat is use of __ init __ in Python?
The __init__ method is similar to constructors in C++ and Java . Constructors are used to initialize the object’s state. The task of constructors is to initialize(assign values) to the data members of the class when an object of class is created .
Read moreWhat is Setattr () used for?
Python setattr() Python setattr() function is used to assign a new value to the attribute of an object/instance . Setattr in python sets a new specified value argument to the specified attribute name of a class/function’s defined object.
Read moreWhat is Setattr () used for?
Python setattr() Python setattr() function is used to assign a new value to the attribute of an object/instance . Setattr in python sets a new specified value argument to the specified attribute name of a class/function’s defined object.
Read moreWhat is the class in Python?
A Python class is like an outline for creating a new object . An object is anything that you wish to manipulate or change while working through the code. Every time a class object is instantiated, which is when we declare a variable, a new object is initiated from scratch.
Read moreWhat is the class in Python?
A Python class is like an outline for creating a new object . An object is anything that you wish to manipulate or change while working through the code. Every time a class object is instantiated, which is when we declare a variable, a new object is initiated from scratch.
Read more