Code
x=[] n=input('Enter a number: ') while n!='done': if int(n) not in x: x.append(int(n)) n=input('Enter a number: ') else: print('Number Repeated, Aborting program') break print(sum(x))
x=[] n=input('Enter a number: ') while n!='done': if int(n) not in x: x.append(int(n)) n=input('Enter a number: ') else: print('Number Repeated, Aborting program') break print(sum(x))