class Student:
def credits(self):
return sum(c.credits for c in self.courses)and use it in two places:
def add_course(self, course_id):| # Source (don't execute) this script in bash | |
| # to configure a ku-polls application. | |
| # name of your python and pip commands | |
| PYTHON=python | |
| PIP=pip | |
| # preferred editor to edit .env file | |
| EDIT=edit | |
| # where to create the virtual environment | |
| ENVDIR="env" |