Answers for "how to delete a single numbers repetition in python"

1

python remove duplicate numbers

duplicate = [2, 4, 10, 20, 5, 2, 20, 4] 
print(list(set(duplicate))
Posted by: Guest on June-21-2020
1

python remove repeated characters from string

''.join(list(dict.fromkeys(list(messagel))))
Posted by: Guest on May-07-2021

Code answers related to "how to delete a single numbers repetition in python"

Python Answers by Framework

Browse Popular Code Answers by Language