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


Download files

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

Files for movie_collection, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size movie_collection-0.1.1-py3-none-any.whl (4.0 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size movie_collection-0.1.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page