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

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
movie_collection-0.1.1-py3-none-any.whl (4.0 kB) Copy SHA256 hash SHA256 Wheel 3.6
movie_collection-0.1.1.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page