- 16

This question i want code

You and your friends like to share YouTube links all throughout the day. You want to keep track of all the videos you watch in your own personal notepad, but you find that keeping the entire link is unnecessary. Keep the video ID (the combination of letters and numbers at the end of the link) in your notepad to slim down the URL. Task: Create a program that parses through a link, extracts and outputs the YouTube video ID. Input Format: A string containing the URL to a YouTube video. The format of the string can be in "https://www.youtube.com/watch?v=kbxkq_w51PM" or the shortened "https://youtu.be/KMBBjzp5hdc" format. Output Format: A string containing the extracted YouTube video id. Sample Input: https://www.youtube.com/watch?v=RRW2aUSw5vU Sample Output: RRW2aUSw5vU

28th Jul 2020, 6:24 PM
Amitabh Pandey
Amitabh Pandey - avatar
8 Antworten
+ 12
Amitabh Pandey Welcome to our forum We don't do homeworks here. You can show your attempt first Also go through this https://www.sololearn.com/discuss/1316935/?ref=app
28th Jul 2020, 6:29 PM
Aditya
Aditya - avatar
+ 10
Please post your code..
28th Jul 2020, 6:31 PM
Aditya
Aditya - avatar
+ 3
Amitabh Pandey Share your code
28th Jul 2020, 7:24 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 2
I didn't get how this even passes as a question , maybe take some time to put up a question properly instead of assigning your work to others and lol this isn't some code that will give you some award or promotion ,it is for your betterment ,solve it yourself and ask a specific question next time with attempted code linked in description
28th Jul 2020, 7:59 PM
Abhay
Abhay - avatar
+ 1
i can help you with specific things but i won’t just hand you the code to do it. i am sure you can do it!👍
29th Jul 2020, 2:24 AM
HullaBrian
HullaBrian - avatar
0
please i need hacking code
21st Aug 2020, 9:22 PM
Victor
Victor - avatar
- 1
I foing some eorror
28th Jul 2020, 6:30 PM
Amitabh Pandey
Amitabh Pandey - avatar