sum=0
hap=0
for i in range(3):
a=int('credit:')
b=float('Grade:')
sum+=a*n
hap+=a
avg=sum/hap
print(avg)
I want to make a program that takes credit grades and outputs average grades, but there is an error in the grammar of invailed syntax.I need a solution
python
The parentheses are not closed. If you use a good editor, there is a plug-in that makes it easy to check out the mismatched parentheses, etc. Get help from the tools.
a=int('credit:'))
© 2024 OneMinuteCode. All rights reserved.