Skip to main content

Create dvd collection and calculate runtime

Project description

# movie collection package

— Creates class object to hold your collection of DVDs It keeps track of the title, length in minutes, and year released on DVD

# calculations

getHoursOrMins function allows you to calculate the total amount of time your movies add up to in either minutes or hours (decimal form) Input is either ‘minute’, ‘minutes’, ‘hour’, ‘hours’ Not case-sensitive Minutes are returned in integer, hours are returned in decimal

totalTime function allows you to get the total amount of time in both hours and minutes For example, getHourOrMins could return 72 minutes or 1.2 hours totalTime will return “All movies in my collection add up to 1 hours and 12 minutes long” “””

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

movie_collection-0.1.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

movie_collection-0.1.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page