>>> import datetime >>> import tasques >>> import projectesf >>> t1 = tasques.Tasca('Refer cablejat elèctric', datetime.timedelta(hours=10, minutes=15)) >>> t2 = tasques.Tasca('Pintar habitació', datetime.timedelta(hours=9)) >>> t3 = tasques.Tasca('Col·locar interruptors', datetime.timedelta(minutes=45)) >>> d = datetime.date(2020, 7, 14) >>> p = projectesf.ProjecteFixat('Reforma habitació', d) >>> p.nom 'Reforma habitació' >>> p.data_inici datetime.date(2020, 7, 14) >>> len(p) 0 >>> p.data_final() == p.data_inici True >>> p.afegir(t1) >>> p.afegir(t2) >>> p.afegir(t3) >>> len(p) 3 >>> print(p[0]) Refer cablejat elèctric - 10:15:00 >>> print(p[1]) Pintar habitació - 9:00:00 >>> print(p[2]) Col·locar interruptors - 0:45:00 >>> print(p.duracio()) 20:00:00 >>> p.data_final() # 20 hores de treball efectiu són dues jornades i mitja datetime.date(2020, 7, 16) --fi-enunciat