Light Mode
Dark Mode
Solved the the task, but there is a problem
def checkio(*data):
total = []
result = []
for i in data:
    total.append(i)
for y in total:
    ctr = total.count(y)
    if ctr > 1:
        result.append(y)
return result

the compilator on the site puts square brackets between values of my function, that's why my code doesn't work properly. It works fine without them. How to fix it? Thank you in advance.

Created: Feb. 18, 2016, 9:38 p.m.
Updated: Feb. 19, 2016, 4:24 p.m.
0
4
User avatar
jamjut1995