please can i get help on this problem

Prince Udoka princeudo52 at gmail.com
Sat Dec 26 08:13:02 EST 2015


sir does this make sense:
def manipulate_data(item, fruits):
    if item == ["apples", "oranges", "mangoes", "grapes"]:
        for fruits in reversed(item):
            return item
    elif item == {"apples", "oranges", "mangoes", "grapes"}:
        for fruits in item:
            fruits.append("ANDELA", "TIA", "AFRICA")
        return item
    if item ==  {"apples": 23, "oranges": 15, "mangoes": 3, "grapes": 45}:
        return dict.keys()
        



More information about the Python-list mailing list