Curso-lenguaje-python/python-ofensivo/00_ejercicios/07_modulos02/hack4u/utils.py

6 lines
107 B
Python

from .courses import courses
def total_duration():
return sum(course.duration for course in courses)