arraylist

Python logical or operator acting strange

Python logical or operator acting strange Question: I am trying to populate a list called images with files that have the extensions ‘.png’, ‘.jpg’ or ‘jpeg’ in a one line for loop. I tried this by using the logical or operator but that only resulted in an empty list. images = [i for i in …

Total answers: 6