0

I want to delete a song of data base, but I receive an error

In line 68 I receive this TypeError: 'MP3' object doesn't support item deletion https://code.sololearn.com/caXBL59f82lZ/?ref=app

22nd Jul 2020, 4:06 AM
TiTo90
TiTo90 - avatar
2 odpowiedzi
+ 1
I didn't reproduce the MP3 error you asked about but I found another you should fix. When I run it, I get: Title: Interpreter: Time: Style: Traceback (most recent call last): File "./Playground/file0.py", line 73, in <module> lista_de_canciones() File "./Playground/file0.py", line 36, in lista_de_canciones if cancion != None: NameError: name 'cancion' is not defined That refers to these lines: canción = nuevas_canciones() if cancion != None: Notice that one variable has an accent over the o in cancion and the other does not. It looks like you'd want them to exactly match.
22nd Jul 2020, 2:19 PM
Josh Greig
Josh Greig - avatar
0
Oh, yes, but I run this in pc and give me error, when I put all data the final function, the one that delete a song, give me an error 😭😭😭
22nd Jul 2020, 4:51 PM
TiTo90
TiTo90 - avatar