Re: please can i get help on this problem

2015-12-27 Thread User of Products
In other words, nobody wants to do your homework for you. Your fault for being 
a lazy POS and doing everything last minute.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: please can i get help on this problem

2015-12-26 Thread Prince Udoka
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()

-- 
https://mail.python.org/mailman/listinfo/python-list


please can i get help on this problem

2015-12-26 Thread Prince Udoka
Create a function manipulate_data that does the following
Accepts as the first parameter a string specifying the data structure to be 
used "list", "set" or "dictionary"
Accepts as the second parameter the data to be manipulated based on the data 
structure specified e.g [1, 4, 9, 16, 25] for a list data structure
Based off the first parameter

return the reverse of a list or
add items `"ANDELA"`, `"TIA"` and `"AFRICA"` to the set and return the 
resulting set
return the keys of a dictionary.


here is my work, but i dont know what i ave done wrong:
def manipulate_data(list_data, set_data):
if list_data == ["apples", "orange", "mangoes"]:
for set_data in reversed(set_data):
return set_data
elif manipulate_data(list_data == {"apples", "orange", "mangoes"}):
list_data.append("ANDELA", "TIA", "AFRICA")
for set_data in list_data:
return set_data
if manipulate_data(list_data == {"apples": 23, "oranges": 15, "mangoes": 3, 
"grapes": 45}):
return list_data.keys()
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: please can i get help on this problem

2015-12-26 Thread Ben Finney
Please help us by choosing a descriptive Subject field. The one you've
chosen tells us *nothing* useful.

As it turns out, I can't get anything useful from your message either:

Prince Udoka  writes:

> here is my work, but i dont know what i ave done wrong:

Neither do I. What is confusing you, in particular? Describe what you're
confused by (for example, what behaviour are you seeing, and how is that
different from what you expect?). Summarise that behaviour in a short
phrase and put it in the Subject field.

-- 
 \“Please to bathe inside the tub.” —hotel room, Japan |
  `\   |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: please can i get help on this problem

2015-12-26 Thread Prince Udoka
gud day sir, please i have an assignment, nd i am just 2weeks in python; i 
tried the code i uploaded but its nt working plz help, i need guidiance
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: please can i get help on this problem

2015-12-26 Thread Ben Finney
Prince Udoka  writes:

> sir does this make sense:

Referring to the whole of a community as “sir” is not only too formal,
it also betrays a different error: you seem to think you're in a
one-on-one dialogue devoted to your issues.

Please, instead of trying to make your messages more polite (your
phrasing is already plenty polite enough), do us the respect of spending
time on the *content* of your message.

As has been asked of you many times now: When you have a question,
please make it specific and answerable.

Describe what *specifically* is confusing or concerning you; describe
*specifically* what you did, what you expected to happen, and what
happened instead.

Putting effort into making your messages easiler to comprehend will be
far more polite than merely calling us collectively “sir”. It will have
the added benefit of getting you more useful answers.

-- 
 \  “When cryptography is outlawed, bayl bhgynjf jvyy unir |
  `\  cevinpl.” —Anonymous |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list