Teach Yourself Python in 24 Hours by Katie Cunningham

Teach Yourself Python in 24 Hours by Katie Cunningham

Author:Katie Cunningham
Language: eng
Format: mobi
Publisher: Pearson Education
Published: 2014-07-13T20:00:00+00:00


After that, you think of some of the things you want your program to do. Here are some potential functions:

Click here to view code image

Functions

---------

Play a song

Play a random song off an album

Play a random album

Some of these functions belong with the classes, whereas others are going to have to live outside of them. For example, playing a song probably belongs with the Song class, whereas getting a random song from the library doesn’t really belong with either Song or Album:

Song

----

Attributes:

Title

Artist

Music file

Play time

Genre

Functions:

Play song



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.