def StudentGPA(gpaList): listA =  listB =  for gpa in gpaList: # Figure out which list to append it to, and append. return listA,listB
15 Replies - 1316 Views - Last Post: 04 October 2012 - 02:52 AM
Re: Can I get some suggestion on the error in my code?
Posted 04 October 2012 - 02:52 AM
The specifications you wrote say that the parameter to the function should be a list of GPA's. Right now you're trying to take two lists (listA and listB) as parameters. Maybe this will help: