Skip to content

Commit

Permalink
Add exam of summer 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
squillero committed Jul 6, 2024
1 parent cfe9efb commit 9893539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/exams/consumption+production/consumption+production.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def read_data(filename):
def main():
"""Standard entry point."""

# Turn consumption into a dictionary to allow lookups such as:
# [(Household_ID, Date, Time)] -> energy
# Turn consumption into a dictionary to allow lookups with tuple such as:
# (Household_ID, Date, Time) -> energy
consumption = dict()
for row in read_data(CONSUMPTIONS_FILENAME):
consumption[(row['Household_ID'], row['Date'], row['Time'])] = float(row['Energy_consumption'])
Expand Down

0 comments on commit 9893539

Please sign in to comment.