<filename>2021/10_homework_code_Ex/movies.py
import csv

# TODO: add your functions and class definition here


def main():
    """Reads a list of movies from bond.csv and sorts it."""
    movies = read_movies('bond.csv')

    print('Original list:')
    print_movies(movies)

    sorted_movies = movie_sort(movies)
    print('\nSorted list by year:')
    print_movies(sorted_movies)


if __name__ == '__main__':
    main()

<filename>2021/10_homework_code_Ex/movies.py
import csv

# TODO: add your functions and class definition here


def main():
    """Reads a list of movies from bond.csv and sorts it."""
    movies = read_movies('bond.csv')

    print('Original list:')
    print_movies(movies)

    sorted_movies = movie_sort(movies)
    print('\nSorted list by year:')
    print_movies(sorted_movies)


if __name__ == '__main__':
    main()

# TODO: add your functions and class definition here Reads a list of movies from bond.csv and sorts it.