print("\n\nThis is a basic program to find the letter grade for a student.")
student = input("What is the students name? : ")
test1 = input("What is the first test grade " + student.capitalize() + " recieved? : ")
test2 = input("What is the second test grade " + student.capitalize() + " recieved? : ")
test3 = input("What is the third test grade " + student.capitalize() + " recieved? : ")
averageTest = (int(test1) + int(test2) + int(test3))
print(student.capitalize() + " recieved an average test grade of " + ((averageTest) / 3))
I am writing a basic grade calculator program and cannot solve this problem
TypeError: cannot concatenate 'str' and 'float' objects
I have so much more to write and im stuck on this line
print(student.capitalize() + " recieved an average test grade of " + ((averageTest) / 3))