Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = []
- for i in range(10):
- num = int(input("Enter a number:"))
- l.append(num)
- u = []
- for i in l:
- if i not in u:
- u.append(i)
- print("The unique numbers are: ")
- out = ""
- for i in u:
- out += str(i)
- out+= ","
- print(out[0:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement