Python Basics : How To Calculate Salary of Employee (with Taxable amount)

Simple Python Program To Calculate Salary of Employee with their certain Taxable amount. This program allows the user to enter values such as: Name of Employee, Name of the Company, Salary Amount and then calculates the Taxable amount with certain salary condition applied in code & displays the Salary. Python Code :- e_name=input(“Enter the name of

Continue reading Python Basics : How To Calculate Salary of Employee (with Taxable amount)

Python Basics : How To Calculate Average Number

This simple Python program allows the user to enter infinite values (with y/n condition ) and then add those entered numbers and displays the average number. Python Code :- a=[ ] b=’y’ while b==’y’: n=input(‘Enter a Number: ‘) a.append(int(n)) b=input(‘Continue(y/n): ‘) s=0 for number in a: s += number avg=s/len(a) print(a) print(“The Sum is %d” % (s))

Continue reading Python Basics : How To Calculate Average Number