Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# COMPSS-211-Final-Project-Template-Repo
Template repository for COMPSS-211 Final Projects
### Isabella
I will be working on data collection and cleaning for our project.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "mypkg"
name = "tweets-about-ai"
version = "0.0.1"
description = "Final Project Group Repository for COMPSS-211"
description = "tis is the final project repository about tweets that talk about ai"
readme = "README.md"
requires-python = ">=3.10"
dependencies = []
Expand Down
3 changes: 0 additions & 3 deletions src/mypkg/mymodule.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/tweets_about_ai/mymodule.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def test():
print("i made a change")

11 changes: 11 additions & 0 deletions src/tweets_about_ai/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def calculate_average(numbers):
"""Calculate the average of a list of numbers."""
if not numbers:
return 0
return sum(numbers) / len(numbers)

def format_currency(amount, currency="USD"):
"""Format a number as currency."""
symbols = {"USD": "$", "EUR": "€", "GBP": "£"}
symbol = symbols.get(currency, "$")
return f"{symbol}{amount:.2f}"