i want to code python program that calculate grades
first list is final exam grade. second list is homework final grade list.
the wight of the score is 70% for exam grade (list 1) and 30% for homework grade
def func_calc(a,b):
for i in range(len(a)):
exam1 = a[i]
homework1= b[i]
print(0.70*exam1+0.30*homework1)
e = [70,80,67,89,100]
h= [100,80,56,89,100]
func_calc(e,h)
why the list in main() not working in the func_calc(only one arg sent)?