Hello I am new to python and I still get confused in some parts. I have this code that I want to understand. I can understand most of it but I get confused on lines 6 up to 11.
winningSet = (10, 11, 8, 1, 5, 20) numberInput=tuple(input().split()) d = {} winningPrize = 0 f = 1 if(len(numberInput) == 7): for i in range(1,7): if int(numberInput[i]) in d: f = 0 break else: d[int(numberInput[i])] = 1 if(int(numberInput[i]) in winningSet): winningPrize += 100 if f: if winningPrize != 0: print(numberInput[0],"won", winningPrize ,"pesos!") else: print(numberInput[0],"won nothing!") else: print("No Duplicates") else: print("Should be 6 numbers")