uaveiro-leci/1ano/1semestre/fp/extra3/ex07.py

3 lines
107 B
Python

def companyVolume(stocks, city):
return [(stock[0], stock[4]) for stock in stocks if stock[1] == city]