Need help on a project To :"Create a class called BankAccount with the following parameters "
homiemusa at gmail.com
homiemusa at gmail.com
Mon Jan 11 16:22:30 EST 2016
On Monday, December 28, 2015 at 12:39:41 PM UTC+3, Won Chang wrote:
> def manipulate_data(kind, data):
> if kind == 'list':
> return list(data)[::-1]
> elif kind == 'set':
> return set(data)
> elif kind == 'dictionary':
> return dict.keys(data)
> manipulate_data("list", range(1,6))
> manipulate_data("set", {"a", "b", "c", "d", "e",})
> manipulate_data("dictionary", {"apples": 23, "oranges": 15, "mangoes": 3, "grapes": 45})
> just use a function to add "ANDELA", "TIA", "AFRICA" to the set, the u are don
how con i add a fuction
More information about the Python-list
mailing list