Computer Science, asked by shilshaurya5606, 5 months ago

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