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

3 lines
107 B
Python
Raw Permalink Normal View History

2023-01-10 10:45:45 +00:00
def companyVolume(stocks, city):
return [(stock[0], stock[4]) for stock in stocks if stock[1] == city]