thanks mr cameron simpson, finally at i got the solution, God bless you:
def manipulate_data(kind, data):
    if kind == 'list':
        for data in [1, 2, 3, 4, 5]:
            return data.reverse()
    elif kind == 'set':
        for data in {"a", "b", "c", "d", "e"}:
            data.add("ANDELA")
            data.add("TIA")
            data.add("AFRICA")
            return data
    elif kind == 'dictionary':
        for data in  {"apples": 23, "oranges": 15, "mangoes": 3, "grape": 45}:
            return data.key()
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to