Debug the following code and re-write the correct code. (Highlight the corrections made). [2]
print("Enter your percentage in following subjects:-")
Phy = float(int("Physics : "))
Chem == float(input("Chemistry : "))
Mat = float(input("Mathematics : "))
Av = (Phy + chem + Mat) / 3
if Av >=65
print("You are eligible for entrance exam")
else:
print("Sorry! you are not eligible for entrance exam")
FASST !!
Answers
Answered by
1
Answer:
print("Enter your percentage in following subjects:-")
Phy = float(input("Physics : "))
Chem = float(input("Chemistry : "))
Mat = float(input("Mathematics : "))
Av = (Phy + chem + Mat) / 3
if Av >=65:
print("You are eligible for entrance exam")
else:
print("Sorry! you are not eligible for entrance exam")
Similar questions
Environmental Sciences,
2 months ago
Hindi,
2 months ago
Math,
5 months ago
Science,
5 months ago
Biology,
10 months ago