Python credit entry program creation question

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

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

2022-09-20 10:53

1 Answers

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:'))


2022-09-20 10:53

If you have any answers or tips


© 2022 pinfo. All rights reserved.