On Sunday, December 27, 2015 at 9:32:24 PM UTC+1, Prince Udoka wrote:
> 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()

so how did you call the function because just pasting your code as it is did 
not work for me. sorry if question sounds dumb
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to