I am making a program in Python to determine the percentage of my marks in various subjects. It is supposed to ask me for my marks and find the percentage but something is wrong. I am rather young, so please don't laugh at my attempt:
import os
import time
print ("This is a program to calculate your percentage in your ACADEMICS ")
time.sleep(2)
english = input("Enter your english marks \n \t")
time.sleep(1)
maths = input ("Enter your maths marks \n \t")
time.sleep(1)
science= input ("Enter your science marks \n \t")
time.sleep(1)
print ("OK, i am reviewing your marks, ")
time.sleep(1)
print ("Hmm, verry poor marks, but here is your %")
percentage = english + maths + science /3
print(percentage)
but in the end it says that
Traceback (most recent call last):
File "C:/Users/COOL BOY/Desktop/percentage.py", line 18, in <module>
percentage = english + maths + science %3
TypeError: not all arguments converted during string formatting
What am I doing wrong here?