Skip to content
Advertisement

I can’t make a foor loop to put number before video_title and URL in pytube

i just want to give program a url of a playlist and print the title and urls and before titles and urls i want be Ordinal numbers also i new in python

i try for loop and while loop an i get list error

JavaScript

Advertisement

Answer

I think you are missing in “for” loop, you tried to use as index for videos, you can do it using with this way;

JavaScript

here is the sample output;

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement