Advertisement
biswasrohit20

1

Apr 4th, 2021
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. l = []
  2. for i in range(10):
  3. num = int(input("Enter a number:"))
  4. l.append(num)
  5.  
  6. u = []
  7. for i in l:
  8. if i not in u:
  9. u.append(i)
  10.  
  11. print("The unique numbers are: ")
  12. out = ""
  13. for i in u:
  14. out += str(i)
  15. out+= ","
  16. print(out[0:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement