Begin forwarded message:
> From: Hardik Gandhi
> Date: 2 April 2014 5:25:20 pm EDT
> To: Danny Yoo
> Subject: Re: [Tutor] Fwd: Python bingo game.
> Reply-To: Hardik Gandhi
>
> Hello!
>
> I am trying to build a bingo game on command prompt. That's my task in this
> semester and i have stud
On 03/04/14 05:58, DaveA wrote:
Gmane doesn't seem to be getting messages from either python tutor or
python list, for the last day or two.
...
Anybody else want to comment? Is the gateway broken or the particular
Android software?
I assume gmane since I've not been seeing anything on my
PC i
I've been trying to so a simple "run a command and put the output into a
variable". Using Python 2.4 and 2.6 with no option to move. The go is to do
something like this:
my_var = "ls -l my_file"
So far the best I've seen is:
line = os.popen('ls -l my_file', stdout=subprocess.PIPE, shell=True)
(o
DaveA Wrote in message:
> Gmane doesn't seem to be getting messages from either python tutor or python
> list, for the last day or two.
It's working again.
>
--
DaveA
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscriptio
Albert-Jan Roskam wrote:
> The unittest module has some really handy decorators: @unittest.skip
> and @unittest.skipIf. I use the former for temporary TODO or FIXME things,
> but I use the latter for a more permanent thing:
> @unittest.skipif(sys.version_info()[0] > 2). Yet, in the test summary yo
leam hall wrote:
> I've been trying to so a simple "run a command and put the output into a
> variable". Using Python 2.4 and 2.6 with no option to move. The go is to
> do something like this:
>
> my_var = "ls -l my_file"
>
> So far the best I've seen is:
>
> line = os.popen('ls -l my_file', st
Hi Leam,
On 3 April 2014 15:24, leam hall wrote:
>
> I've been trying to so a simple "run a command and put the output into a
> variable". Using Python 2.4 and 2.6 with no option to move. The go is to do
> something like this:
>
> my_var = "ls -l my_file"
>
> So far the best I've seen is:
>
>
On Thu, Apr 3, 2014 at 10:14 AM, Walter Prins wrote:
> Hi Leam,
>
>
> On 3 April 2014 15:24, leam hall wrote:
>>
>> I've been trying to so a simple "run a command and put the output into a
>> variable". Using Python 2.4 and 2.6 with no option to move. The go is to do
>> something like this:
>>
Oh, sorry Walter. I thought you were the original questioner. Sorry
about confusing you with Learn Hall.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 03/04/14 14:24, leam hall wrote:
I've been trying to so a simple "run a command and put the output into a
variable". Using Python 2.4 and 2.6 with no option to move. The go is to
do something like this:
my_var = "ls -l my_file"
I'm not sure what you mean here?
What should my_var contain? Th
I apologize for the omissions, I thought that I had isolated the problem, but I
was way off the mark. The problem was, as suggested by Danny and Peter, in the
function where the dictionary is assigned. I ran the type function, as Alex
advised, and lo and behold the function was returning a strin
John Aten wrote:
> I apologize for the omissions, I thought that I had isolated the problem,
> but I was way off the mark. The problem was, as suggested by Danny and
> Peter, in the function where the dictionary is assigned. I ran the type
> function, as Alex advised, and lo and behold the functio
>> The thing is, this looks really messy Could anyone give me some pointers
>> on how this could be more elegantly done?
>
> Instead of the many if...elif switches try to put the alternatives into a
> list, e. g.
>
cases = [
> ... "Nominative",
> ... "Genitive",
> ... "Dative",
> ... "Accusati
That's what this site http://pythontutor.com/ claims although I haven't
tried it myself. Hopefully it's of some use to all you newbies out there :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free
On 2014-04-03 13:52, Danny Yoo wrote:
You'll also hear the term "Data Driven Programming" or "Table Driven
Programming" to refer to this idea. For example:
http://blogs.msdn.com/b/ericlippert/archive/2004/02/24/79292.aspx
Does anyone know of a similar blog or tutorial (regarding Data Dr
On 03/04/14 23:44, Mark Lawrence wrote:
That's what this site http://pythontutor.com/ claims although I haven't
tried it myself. Hopefully it's of some use to all you newbies out
there :)
Ooh, clever!
I was expecting the code trace on the left but not the graphical data
display on the right.
On 04/04/14 00:09, Alex Kleider wrote:
On 2014-04-03 13:52, Danny Yoo wrote:
You'll also hear the term "Data Driven Programming" or "Table Driven
Programming" to refer to this idea. For example:
http://blogs.msdn.com/b/ericlippert/archive/2004/02/24/79292.aspx
Does anyone know of a sim
On 02/04/2014 08:18, spir wrote:
On 04/01/2014 06:24 PM, Zachary Ware wrote:
Hi Patti,
On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote:
I've been cheating: comment out the conditional statement and adjust
the
indents. But, how do I make my program run with if __name__ == 'main':
main() at
> I don't know how good it is as a tutor but the visuals are certainly slick.
> Pity I can't see the source code to see how they do it...
https://github.com/pgbovine/OnlinePythonTutor/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subs
By the way, the main developer on the pythontutor.org project is
awesome. http://www.pgbovine.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 2014-04-03 16:36, Alan Gauld wrote:
On 04/04/14 00:09, Alex Kleider wrote:
On 2014-04-03 13:52, Danny Yoo wrote:
You'll also hear the term "Data Driven Programming" or "Table Driven
Programming" to refer to this idea. For example:
http://blogs.msdn.com/b/ericlippert/archive/2004/02/24
21 matches
Mail list logo