Add YouTube playlists assignment
All checks were successful
Deploy to Homelab / deploy (push) Successful in 6s
All checks were successful
Deploy to Homelab / deploy (push) Successful in 6s
This commit is contained in:
30
shared/assignments/youtube-playlists.md
Normal file
30
shared/assignments/youtube-playlists.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
You will be re-creating the YouTube playlist system using an interactive Python command-line program.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
On program startup, it should populate with a bunch of playlists. Then, the user should be able to interact with them.
|
||||||
|
|
||||||
|
User should be able to:
|
||||||
|
|
||||||
|
- From the home page, pick and play a playlist
|
||||||
|
- Starts playing a video from the beginning of the playlist
|
||||||
|
- From a video, skip to the next video
|
||||||
|
- From a video, go back to the previous video
|
||||||
|
- From a video, exit and go back to the home view
|
||||||
|
|
||||||
|
Required data structures:
|
||||||
|
|
||||||
|
- `Playlist`
|
||||||
|
- Should be a linked list (store the head and tail nodes)
|
||||||
|
- Should offer linked list methods
|
||||||
|
- Maybe something like `getFront`
|
||||||
|
- `Video`
|
||||||
|
- The node object in a linked list
|
||||||
|
- Must store references to the next video and the previous one
|
||||||
|
- Stores other video information, such as title, description, and playback time in seconds
|
||||||
|
|
||||||
|
## Submitting
|
||||||
|
|
||||||
|
Create a .zip file and email it to me at bchendev@icloud.com.
|
||||||
|
|
||||||
|
You may reference online sources, but must include them in a README file.
|
||||||
Reference in New Issue
Block a user