Subash Chandran posted: "some_list=['a','b','c','b','d','m','n','n'] my_list=sorted(some_list) duplicates=[] for i in my_list: if my_list.count(i)>1: if i not in duplicates: duplicates.append(i) print(duplicates)"
|

Subash Chandran posted: "some_list=['a','b','c','b','d','m','n','n'] my_list=sorted(some_list) duplicates=[] for i in my_list: if my_list.count(i)>1: if i not in duplicates: duplicates.append(i) print(duplicates)"
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.