Question: For this task, you are to write a class for representing YouTube videos. Each YouTube video object should contain the title of the video (
For this task, you are to write a class for representing YouTube videos.
Each YouTube video object should contain the title of the video eg THANTS as well as the URL of the video eg youtube url You must also define a method called printdetails which prints the title alongside the URL. Examples for testing
Use the examples below, as well as your own examples, to test your code. The output from your code should exactly match what is shown here.
Example run THANTS the url next example is SKYDIVING youtube url code provide to test the function # TODO: Define the YouTubeVideo class here.
# This code is provided for you to test your class.
video YouTubeVideoTHANTS 'youtube url'
video YouTubeVideoSkydiving 'youtube url'
videoprintdetails
videoprintdetails Where you see youtube url there would be a actual url there but I cannot show that part of the example
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
