'''
Assignment No: 1
To calculate salary of an employee given his basic pay (take as input from user).
Calculate gross salary of employee. Let HRA be 10 % of basic pay and TA be 5% of basic pay.
Let employee pay professional tax as 2% of total salary.
Calculate net salary payable after deductions.
'''
basic_pay = input("Enter your basic pay: ")
try:
basic_pay = float(basic_pay)
if basic_pay<0: # basic pay cannot be less than zero
print("Basic pay can't be negative.")
exit()
hra = basic_pay*0.1 # hra is 10 % of basic pay
ta = basic_pay*0.05 # ta is 5 % of basic pay
total_salary = basic_pay + hra + ta
professional_tax = total_salary*0.02 # professional tax is 2 % of total salary
salary_payable = total_salary - professional_tax
print("Salary Payable is",salary_payable)
except ValueError:
print("Enter amount in digits.")
Assignment No: 1
To calculate salary of an employee given his basic pay (take as input from user).
Calculate gross salary of employee. Let HRA be 10 % of basic pay and TA be 5% of basic pay.
Let employee pay professional tax as 2% of total salary.
Calculate net salary payable after deductions.
'''
basic_pay = input("Enter your basic pay: ")
try:
basic_pay = float(basic_pay)
if basic_pay<0: # basic pay cannot be less than zero
print("Basic pay can't be negative.")
exit()
hra = basic_pay*0.1 # hra is 10 % of basic pay
ta = basic_pay*0.05 # ta is 5 % of basic pay
total_salary = basic_pay + hra + ta
professional_tax = total_salary*0.02 # professional tax is 2 % of total salary
salary_payable = total_salary - professional_tax
print("Salary Payable is",salary_payable)
except ValueError:
print("Enter amount in digits.")
Nice
ReplyDeleteDone
ReplyDeleteeasy
ReplyDeleteUnderstood.Thanks
ReplyDeleteEasy to study.Thanks
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteUnderstood, nice teaching
ReplyDeleteLittle bit hard... But understandable
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteVery easy
ReplyDeleteVery nice and easy to understand
ReplyDeleteVery nice experience with pyton
This comment has been removed by the author.
ReplyDeleteEasy
ReplyDeleteEasy
ReplyDeleteTeaching is nice and easy to understand.
ReplyDeleteLanguage is hard...Not so hard.
Nice experience.๐๐๐
Kdkk
ReplyDeleteUnderstand
ReplyDeleteEasy
ReplyDeleteTeaching is very nice.
ReplyDeleteAlso Python language some time hard but easy.
Good experience with language and teaching is also so good.๐๐๐๐๐
Teaching is very nice.
ReplyDeleteAlso Python language some time hard but easy.
Good experience with language and teaching is also so good.๐๐๐๐๐
Easy pratical
ReplyDeleteVery easy pratical
ReplyDeleteUnderstand
ReplyDeleteUnderstand ๐
ReplyDeleteEasy to understand
ReplyDeleteUnderstood but to run the program was little bit difficult because too many errors were occuring.
ReplyDeleteEasy
ReplyDeleteDone
ReplyDeleteVery easy pratical
ReplyDeleteVery nice pratical
ReplyDeleteEasy...practical
ReplyDeleteEasy to understand but some time there is error when program to be run
ReplyDeleteEasy to understand but some time it's hard to run the program
ReplyDeleteIt is very useful practical
ReplyDelete1๐
ReplyDeleteNice and easy
ReplyDeleteUnderstandable
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteGreat Practical
ReplyDeleteEasy to perform
ReplyDeleteVery Easy to Understand
ReplyDeleteEasy practical and better understanding
ReplyDeleteExcellent python language
ReplyDeleteExcellent
ReplyDeleteIt's very easy to understand
ReplyDeleteVery easy than lectures
ReplyDeleteVery easy than lectures
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteeasy
ReplyDeleteNice practical
ReplyDeleteInformative for us
ReplyDeleteyes. i understood
ReplyDeleteYes . I understand sir
ReplyDeleteyes.I understand the given program
ReplyDeleteYes.its easy to understand
ReplyDeleteYes i understand
ReplyDeleteyes.I understand the given program
ReplyDeleteI understand
ReplyDeleteEasy to understand
ReplyDeleteeasy to understand
ReplyDeleteNice practical
ReplyDeleteNice practical
ReplyDeleteEsay to understand
ReplyDeleteToday's practical was entreating....
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteEasy to understand
ReplyDeleteUnderstand
ReplyDeleteEasy practical and this practical had increased my excitement for python language...
ReplyDeleteEas
ReplyDeleteEasy to understand
ReplyDeleteeasy to understand
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteyes, i understood the given program
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteThis is very easy to understand
ReplyDeleteVery well done sir ji.. .. ......... .easy to understand .......
ReplyDeleteEasy to understand
ReplyDeleteI can understand that programme
ReplyDeleteI can understand that programme
DeleteIt's easier to understand
ReplyDeleteIt's easy program and easy to understand
ReplyDeleteNice program
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy program understand quickly!!!
ReplyDeleteNice Program
ReplyDeleteExcellent language
ReplyDeleteEasy to understand
ReplyDeleteEasy to Understand.
ReplyDeleteEasy for understanding
ReplyDeleteNice
ReplyDeleteI understand this program.
ReplyDeleteI understand this program.
ReplyDeleteEasy to understanding .. .
ReplyDeletegood understanding
ReplyDeleteWell in understanding
ReplyDeleteWell in understanding
ReplyDeleteGood understanding
ReplyDeleteGood understanding ๐
ReplyDeleteunderstood
ReplyDeleteGood understanding
ReplyDeleteGood understanding
ReplyDeleteunderstood
ReplyDeletePlzz make also in algorithm and flow chart for more convinience. Rather it was good.
ReplyDelete๐ done
ReplyDeletePlease make it's algorithm and flowchart for understanding
ReplyDeletegood program and logic
ReplyDeletetry:
ReplyDeletesalary=float(input("Enter Your Salary "))
hra=((salary/100)*10)
ta=((salary/100)*5)
gross_salary=salary+hra+ta
print("Gross Salry is ",gross_salary)
net_salary=(gross_salary)-((gross_salary/100)*2)
print("Net Payable Salary is ",net_salary)
except ValueError:
print("Invalid Input")
Good understanding and easy program
ReplyDelete๐๐ค
ReplyDeleteUnderstood
ReplyDeleteGreat๐
ReplyDeleteUnderstand...
ReplyDeleteprogram is easy understood
ReplyDeleteGreatly Understood
ReplyDeleteUnderstood
ReplyDeleteUnderstood sir๐ค๐ค๐
ReplyDeleteUnderstood sir
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeletePractical is easy
ReplyDeletePractical is easy understood
ReplyDeleteI understand the practical
ReplyDeletepractical was easy to understand
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteEasy to understand
ReplyDeleteNice
ReplyDeleteNice
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteunderstood
ReplyDeleteunderstood
ReplyDeleteLearned The Fisrt Practical of Python programming
ReplyDeleteUnderstood
ReplyDeletePractically is Too Easy to solve
ReplyDeleteUnderstood
ReplyDeleteUnderstood
ReplyDeleteB_25_ Kakade Siddharth Valmik
ReplyDeleteBest way to learn Coding
B-56-Lalit Sambhaji Patil
ReplyDeleteEasiest way to learn programming
B-24 Kakade Rahul
ReplyDeletePractical is most important for learning Python.
B-24 Kakade Rahul
ReplyDeletePractical is important for learning Python
B_13_Ghumare sonali Sudam
ReplyDeleteExcellent python language
B-47-vaibhav more
ReplyDeleteUnderstood sir
Very Nice Teaching Sir
ReplyDeleteB-32-Gaurav kere
ReplyDeleteUnderstood
Understood this program
ReplyDeleteUnderstood thanks sir
ReplyDeleteB-11-Pratik Ghule
ReplyDeleteUnderstood this program
B-02-Ganesh D Gaikwad
ReplyDeleteB-1 shrutika gaikwad
ReplyDeleteUnderstood
Understood properly
ReplyDeleteB 08 Pratik Gawand
ReplyDeleteUnderstood sir
B-27 Komal Kapse
ReplyDeleteUnderstood
B-18-Sakshi Handge
ReplyDeleteUnderstood
Understood
ReplyDeleteB-21 Mansi jadhav
ReplyDeleteUnderstood
B-15-soham gujrathi
ReplyDeleteUnderstood
B-04- Prathamesh Ganore
ReplyDeleteUnderstood
B-06-ANISH GAVALI
ReplyDeleteUnderstood
B-23-kadam tejashree
ReplyDeleteUnderstood
B - 55 / Kalpesh patil
ReplyDeleteUnderstood
Great session
ReplyDeleteB-41-Nikhil kokate:- nice
ReplyDeleteB-10 Ghuge Archana
ReplyDeleteUnderstood very clearly
ReplyDeleteB-20 LAVANYA JADHAV ... Good session ... concepts are clear but some doubt
ReplyDeleteB-40 kajal manik kokate....... Understand
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteA-13-Srushti bakal
ReplyDeleteUnderstood
B-46-Ankit Maurya
ReplyDeleteContent is very useful, for getting started with programming language
B-48-Pooja Murkute
ReplyDeleteVery useful
I understood this program very well.
ReplyDeleteThank you sir.
Understood very nice
ReplyDeleteUnderstood very nice.thank you sir
ReplyDeleteB-29 Pooja kedar
ReplyDeleteThank you sir
Thanks for this but can i get flow chart for this question
ReplyDeleteProgram was very amazing sir i completely understood๐
ReplyDeleteGood , Understanding : C-01: UDB
ReplyDeleteUnderstood very nice C38 vt
ReplyDeleteVeri nicely understand
ReplyDeleteC:36:Tamnar Sanket
Very nicely understand
ReplyDeleteC:49: Valvi Vishal
C_19_Bhakti Shinde
ReplyDeleteUnderstood