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

6 lines
107 B
Python
Raw Normal View History

2023-12-29 07:05:48 +01:00
from .courses import courses
def total_duration():
return sum(course.duration for course in courses)