print(*sorted(gl, key = float(sumsredball), reverse = True))print(sorted(gl, key = lambda x: float(sumsredball), reverse = True))print(sorted(gl, key = lambda x: sumsredball)) 
        for k,v, in gl.items():                  
                   s=f'Группа: {k}: \n'
                   for stdn,grds in v.items():                  
                         s+=f'  {stdn}\t{grds[0]},{grds[1]},{grds[2]} \n'
                         avg_score += grds[0] + grds[1]+ grds[2]
                         sumsredball= round(avg_score / (len(v) * 3), 2)
                   for stdn,grds in v.items():
                        s += f'Средняя успеваемость в группе: {sumsredball} \n'
                   print(s) 
        
for daiz,srn in storagedatedict.items():
                  if daiz==0 or daiz==1 in storagedatedict.items():
                        print(daiz,srn)def fastorders(self):
            dateformat='%d.%m.%Y'
            print("Вывод тех записей,где был самый маленький срок выполнения заказа:")
            storagedatedict=defaultdict(int)# Словарь для хранения полученных дней
            for bookorder in bookorders:
                  dat1=datetime.strptime(bookorder.dateorder,dateformat)
                  dat2=datetime.strptime(bookorder.datetakeorder,dateformat) 
                  difdayz=dat2-dat1
                  #dayzstr=str(difdayz)                  
                  storagedatedict[difdayz,bookorder.surnm]+=1
            for daiz,srn in storagedatedict.items():
                  if daiz==0 or daiz==1 in storagedatedict.items():
                        print(daiz,srn)

catalog\model\catalog\product.php; 
controller/product/product.php; 
template/product/product.twig$data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($this->request->get['product_id']);
print(gl)