Skip to content
Advertisement

python program to write a code that receives file route and return a tuple with things from the file

I need to write a program to receive a file. her content is something like that:

JavaScript

this is my code:

JavaScript

the program needs to return a tuple that contain the (name of the longest song, number of lines in the file, most appearing artist in the file)

JavaScript

But it doesn’t work and return:

JavaScript

Advertisement

Answer

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