Need help on a project To :"Create a class called BankAccount with the following parameters "

Prince Udoka princeudo52 at gmail.com
Mon Dec 28 04:34:13 EST 2015


bu i have come up with a solution, that will work but encounter a problem in the set, giving set not manipulated correctly:
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", "ANDELA", "TIA", "AFRICA"}) 
manipulate_data("dictionary", {"apples": 23, "oranges": 15, "mangoes": 3, "grapes": 45})

the thing now is the function to use in adding "ANDELA", "TIA", "AFRICA"
pls 4give my use of language



More information about the Python-list mailing list