Introduction : Program has 1 Lists and 1 Set : List = Data Entry ; Set: Comparison Data
lista_entrada = ['BBB','AAA','CCC','DDD','EEE']
print()
for item in lista_entrada:
print("item")
lista_bd = {'AAA','BBB','CCC','DDD','EEE','FFF','GGG','EEE'}
Problem:
How to compare the List with the Set;
Print the same values from the item: "AAA" , do not print values older than the "AAA" item in the list. Print to "EEE"
I've tried a few things, but I do not know very well how to handle repetition loops and search functions in lists or sets: / Then I always end up falling into this problem