Re: [Tutor] URGENT: PYTHON QUESTION

2016-03-31 Thread Joel Goldstick
direct your question to tutor@python.org. Also provide the results you have gotten from your code, and what you think is wrong On Thu, Mar 31, 2016 at 7:46 AM, accessmuah wrote: > Hi > > > > Pls, helped review it as i cant proceed to the next stage > > def manipulate_data(kind, data): > if

[Tutor] Fw: URGENT: PYTHON QUESTION

2016-03-31 Thread accessmuah via Tutor
Hi, Pls, assist with this QuestionKindly stroll to the end DS LABCreate a function manipulate_data that does the followingAccepts 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

Re: [Tutor] Fw: URGENT: PYTHON QUESTION

2016-03-31 Thread Steven D'Aprano
On Thu, Mar 31, 2016 at 12:47:21PM +, accessmuah via Tutor wrote: > Hi, > Pls, assist with this QuestionKindly stroll to the end > DS LABCreate a function manipulate_data that does the followingAccepts > as the first parameter a string specifying the data structure to be > used "list", "

Re: [Tutor] Best tool for programming interactive games in Python

2016-03-31 Thread Oscar Benjamin
On 30 March 2016 at 00:26, Alan Gauld wrote: > On 29/03/16 22:17, Oscar Benjamin wrote: >> >> On 29 Mar 2016 22:20, "Alan Gauld" > > wrote: >> >> > investigate. And of course there is OpenGL which plays very >> > well with MacOSX. >> >> OpenGL plays nicely with Wi

Re: [Tutor] Best tool for programming interactive games in Python

2016-03-31 Thread Alan Gauld
On 31/03/16 20:27, Oscar Benjamin wrote: >>> OpenGL plays nicely with Windows and Linux as well. >> >> mix n' match the OSX graphics libraries. You can't do that as easily >> in X or Windows is an add-on library, not a native part of the OS. > > That's interesting. I've used OpenGL on Windows and

Re: [Tutor] Fw: URGENT: PYTHON QUESTION

2016-03-31 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
This is working fine. What is the problem? def manipulate_data(kind, data): if kind == 'list': return list(data)[::-1] elif kind == 'set': #data=set({"a", "b", "c", "d", "e", "ANDELA", "TIA", "AFRICA"}) return set(data) elif kind == 'dictionary': return