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

2015-12-27 Thread lee
> >Instead, your function should examine the "kind" parameter and decide > >what to do. So it would reasonably look like this (untested): > > > > def manipulate_data(kind, data): > > if kind == 'list': > > ... do stuff with data using it as a list ... > > elif kind == 'set': > > ...

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

2015-12-27 Thread Erik
On 27/12/15 15:02, lee wrote: the code i have tested base on Cameron's code def manipulate_data(kind, data): if kind == 'list': return list(data)[::-1] elif kind == 'set': return set(data) elif kind == 'dictionary': return dict( data) manipulate_data("list", ran

Problem Running tkinter gui Code

2015-12-27 Thread brian . moreira
Hi there. I trying to run a simple code that opens a Tkinter window with text in it, on my windows 8 machine using Python 3.4.3 I used to ge: “ImportError: no tkinter module exists” But now it opens a windows Wizard screen that prompts me to Modify, Repair, or Uninstall Python. I have tried

CGI

2015-12-27 Thread Pol Hallen
Merry Christmas to all :-) A (newbie) question: I'd like learn about CGI pyhton script to create some utility using http://localhost/python_script01.py Something like that: #!/usr/bin/python print "Content-type: text/html" print print "" print "Hello!" print "" How can I execute a local comm

CGI

2015-12-27 Thread Pol Hallen
Merry Christmas to all :-) A (newbie) question: I'd like learn about CGI pyhton script to create some utility using http://localhost/python_script01.py Something like that: #!/usr/bin/python print "Content-type: text/html" print print "" print "Hello!" print "" How can I execute a local comm

Re: CGI

2015-12-27 Thread Chris Angelico
On Sat, Dec 26, 2015 at 7:35 AM, Pol Hallen wrote: > Merry Christmas to all :-) > > A (newbie) question: I'd like learn about CGI pyhton script to create some > utility using http://localhost/python_script01.py > > Something like that: > > #!/usr/bin/python > print "Content-type: text/html" > prin

Re: CGI

2015-12-27 Thread Maitu Zentz
Pol Hallen: > Merry Christmas to all :-) > > A (newbie) question: I'd like learn about CGI pyhton script to create > some utility using http://localhost/python_script01.py > > Something like that: > > #!/usr/bin/python print "Content-type: text/html" > print print "" > print "Hello!" > print ""

Re: CGI

2015-12-27 Thread Laurent Delacroix
On 26/12/15 10:41, Pol Hallen wrote: > > How can I execute a local command (like ls or similar) and show output > via browser? > Either you use a proper web framework (Flask, Bottle, Django in order of complexity) or you set up a web server with FastCGI support (e.g. nginx) and run a WSGI appli

How to change/set compiler option for weave inline function

2015-12-27 Thread Robert
Hi, I want to run a few C code inside Python on Windows 7, 64-bit PC, Canopy 1.5.2.2785. I made a few trials, but I forget the detail commands I made on compiler setting. One thing I remember is that I added one file: distutils.cfg, whose content is: [build] compiler=mingw32 And another thing I

Re: Error

2015-12-27 Thread Paulo da Silva
I am not a windows user but googling for api-ms-win-crt-runtime-l1-1-0.dll I could find many pages on this subject. The 1st one was https://www.smartftp.com/support/kb/the-program-cant-start-because-api-ms-win-crt-runtime-l1-1-0dll-is-missing-f2702.html Search by yourself or use this one, for exa

Re: CGI

2015-12-27 Thread Chris Warrick
On 27 December 2015 at 18:59, Laurent Delacroix wrote: > On 26/12/15 10:41, Pol Hallen wrote: >> >> How can I execute a local command (like ls or similar) and show output >> via browser? >> > > Either you use a proper web framework (Flask, Bottle, Django in order of > complexity) or you set up a w

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

2015-12-27 Thread lee
> > After you've called the function, anything you do to the result is not > done BY the function and will therefore not be done when called by other > code. > > The unit test that calls the function will not do those things. It > expects them to already be done. > > So ... what changes to yo

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

2015-12-27 Thread Prince Udoka
thanks mr cameron simpson, finally at i got the solution, God bless you: def manipulate_data(kind, data): if kind == 'list': for data in [1, 2, 3, 4, 5]: return data.reverse() elif kind == 'set': for data in {"a", "b", "c", "d", "e"}: data.add("ANDELA

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

2015-12-27 Thread lee
On Sunday, December 27, 2015 at 9:32:24 PM UTC+1, Prince Udoka wrote: > thanks mr cameron simpson, finally at i got the solution, God bless you: > def manipulate_data(kind, data): > if kind == 'list': > for data in [1, 2, 3, 4, 5]: > return data.reverse() > elif kind ==

Re: Problem Running tkinter gui Code

2015-12-27 Thread Zachary Ware
On Sat, Dec 26, 2015 at 10:59 PM, brian.moreira wrote: > I trying to run a simple code that opens a Tkinter window with text in it, on > my windows 8 machine using Python 3.4.3 Hi Brian, Details are important, and there are several missing from your question that make any advice just guesswork

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

2015-12-27 Thread Erik
On 27/12/15 20:32, Prince Udoka wrote: thanks mr cameron simpson, finally at i got the solution, God bless you: def manipulate_data(kind, data): if kind == 'list': for data in [1, 2, 3, 4, 5]: return data.reverse() elif kind == 'set': for data in {"a", "b"

Textarc recreation in Jupyter Notebook

2015-12-27 Thread D.M. Procida
Maybe you remember , which creates an interactive representation of relationships within a text. Textarc doesn't work for me on OS X any more, but I did find a JavaScript recreation, (code: ). I'd like

Re: A newbie quesiton: local variable in a nested funciton

2015-12-27 Thread jfong
Chris Angelico at 2015/12/27 UTC+8 2:32:32PM wrote: > On Sun, Dec 27, 2015 at 3:11 PM, wrote: > > Last night I noticed that Python does not resolve name in "def" during > > import, as C does in the compile/link stage, it was deferred until it was > > referenced (i.e. codes was executed). That'

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

2015-12-27 Thread Cameron Simpson
On 27Dec2015 12:32, Prince Udoka wrote: thanks mr cameron simpson, finally at i got the solution, God bless you: def manipulate_data(kind, data): if kind == 'list': for data in [1, 2, 3, 4, 5]: return data.reverse() elif kind == 'set': for data in {"a", "b", "c", "

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