Initial skeleton of program
This commit is contained in:
parent
1ee1d4f049
commit
3fdfba4024
32
reviews.py
Normal file
32
reviews.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
def load_reviews(filepath: str) -> list:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def filter_by_rating(reviews: list, min_rating: int, max_rating: int) -> list:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def get_average_rating(reviews: list) -> float:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def count_words_in_review(review: dict) -> int:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def find_longest_review(reviews: list) -> dict:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def build_word_frequency(reviews: list) -> dict:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def get_top_words(freq_dict: dict, n: int) -> list:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def group_reviews_by_rating(reviews: list) -> dict:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def format_summary(reviews: list, top_words: list, avg_rating: float) -> str:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print("\nПрограмма завершена!")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
Loading…
Reference in New Issue
Block a user