def ismetles(rovid_lista): l = [] for db, szam in rovid_lista: for i in range(db): l.append(szam) return l