Can someone help me? The last row of the code gives me an error.
os.chdir("./envolventes")
diractual = os.getcwd()
ficheros = os.listdir(diractual)
lista_sin_D = [ x for x in ficheros if "D" not in x ]
import re
lista_A_menor45 = [ x for x in ficheros if int(re.match('.*?([0-9]+)$',
x).group(1)) < 45 ]