"List indecies must be int not str" -Python
By
pipnina
in Programming
in Programming
Go to solution
Solved by flexin1981,
hey I think that the issue is that you are passing in the whole list to the "get_average(student)" function, try the following;
def get_class_average(students): results = [] for stud in students: results.append(get_average(stud))
-
Topics
-
0
-
0
-
0
-
0
-
l3eyond ·
Posted in Programs, Apps and Websites0 -
1
-
Serendipity1344 ·
Posted in Graphics Cards4 -
1
-
1
-
5
-

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now