Can I get some suggestion on the error in my code?

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 768 Views - Last Post: 04 October 2012 - 02:52 AM Rate Topic: -----

#16 Tayacan  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 145
  • View blog
  • Posts: 275
  • Joined: 18-January 11

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:

def StudentGPA(gpaList):
    listA = []
    listB = []

    for gpa in gpaList:
        # Figure out which list to append it to, and append.

    return listA,listB


Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2