import os folder = "./images/" #defining as a list images = [] titles = [] #shows all the images os.listdir(folder) for image in os.listdir(folder): print(image) print(folder + image) print("---") images.append(folder + image) titles.append(image) #html counter = 0 all_cards = "" for image in images: #html image element img = f"" #img = "" #define title title = titles[counter] #printing to inspect print(img) #mini template for card card = f"""
{ img }