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 (e.g., THANTS) as well as the URL of the video (e.g., youtube url). You must also define a method called print_details 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 1 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.
video1= YouTubeVideo('THANTS', 'youtube url')
video2= YouTubeVideo('Skydiving!', 'youtube url')
video1.print_details()
video2.print_details() 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!