I'm new to python, and I'm trying to check if a String is inside a list.
I have these two variables:
 new_filename: 'SOLICITUDES2_20201206.DAT'  (str type)
 
and
 downloaded_files:
   [['SOLICITUDES-20201207.TXT'], ['SOLICITUDES-20201015.TXT'], ['SOLICITUDES2_20201206.DAT']] (list type)
for checking if the string is inside the list, I'm using the following:
   if new_filename in downloaded_files:
       print(new_filename,'downloaded')
and I never get inside the if.
But if I do the same, but with hard-coded text, it works:
    if ['SOLICITUDES2_20201206.DAT'] in downloaded_files_list:
        print(new_filename,'downloaded')
What am I doing wrong?
Thanks!
