Rei_anami

sort_script for OneTab

Jan 23rd, 2024 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. i = input()
  2. x = 0
  3.  
  4. xx = []
  5. xxx = []
  6. while i != 'stop':
  7. #print(i)
  8. xx.append(i)
  9. i = input()
  10. print('--------------')
  11. #print(xx)
  12. xx.sort()
  13. xx.append('end')
  14. #print(xx)
  15. #print(len(xx),xx[])
  16. print('--------------',len(xx))
  17. print()
  18. print()
  19. print()
  20. print()
  21. y = 0
  22. for j in range(len(xx)+1):
  23.  
  24. if j+1 < (len(xx)):
  25.  
  26. if xx[j] != xx[j+1]:
  27. xxx.append(xx[j])
  28. print(xx[j])
  29. y += 1
  30. if y == 20:
  31. print()
  32. y = 0
  33.  
  34. print(len(xxx))
Advertisement
Add Comment
Please, Sign In to add comment