Re: [Tutor] Need help with python

2015-09-14 Thread Alan Gauld
On 15/09/15 00:25, Laura Creighton wrote: The gmane.org reference is here: gmane.comp.python.testing.general I am not getting anything sensible out of this. Works for me, but admittedly I only see one post in September. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.u

Re: [Tutor] Need help with python

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 19:48:01 +0100, Alan Gauld writes: >On 14/09/15 18:02, vijayram wrote: >> Hi, >> >> I need help with python nose tests and test-suite… can I request help >> with a tutor.. > >You can try asking basic questions here, but as nose is not >part of the standard libra

Re: [Tutor] Need help with python

2015-09-14 Thread Alan Gauld
On 14/09/15 18:02, vijayram wrote: Hi, I need help with python nose tests and test-suite… can I request help with a tutor.. You can try asking basic questions here, but as nose is not part of the standard library you might get more help on the python testing list: The gmane.org reference

Re: [Tutor] Need help with python

2015-09-14 Thread Steven D'Aprano
On Mon, Sep 14, 2015 at 10:02:35AM -0700, vijayram wrote: > Hi, > > I need help with python nose tests and test-suite… can I request help with > a tutor.. Sure. Ask your questions on the mailing list, and somebody will answer. This is a group for *public* tutoring, so that everyone can learn

[Tutor] Need help with python

2015-09-14 Thread vijayram
Hi, I need help with python nose tests and test-suite… can I request help with a tutor.. Thank you, vijay ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Need help with python script

2014-08-04 Thread Joel Goldstick
On Mon, Aug 4, 2014 at 11:20 AM, P McCombs wrote: > Sorry, I missed copying this to the list. > > On Aug 4, 2014 8:13 AM, "P McCombs" wrote: > > >> >> >> On Jul 31, 2014 4:50 PM, "McKinley, Brett D." wrote: >> > >> > I would like to see if someone can help me with a python script. I’m >> > tryi

Re: [Tutor] Need help with python script

2014-08-04 Thread P McCombs
Sorry, I missed copying this to the list. On Aug 4, 2014 8:13 AM, "P McCombs" wrote: > > > On Jul 31, 2014 4:50 PM, "McKinley, Brett D." wrote: > > > > I would like to see if someone can help me with a python script. I’m trying to export a file geodatabase feature class to csv file. This is wh

[Tutor] Need help with python script

2014-07-31 Thread McKinley, Brett D.
I would like to see if someone can help me with a python script. I'm trying to export a file geodatabase feature class to csv file. This is what I have so far: import arcpy import os import csv import domainvalues def export_to_csv(dataset, output, dialect): """Output the data to a CSV f

Re: [Tutor] Need help with python keyboard press/navigation commands

2013-03-12 Thread ALAN GAULD
>> Finally, from a user experience point of view, it might be more logical to >> make the keys w,a,s,z North, West,East and South respectively  > >Most games use WASD, so user experience would be in favour of it >compared to WASZ. There are a couple of reasons for this:  > >You live and learn! :-)

Re: [Tutor] Need help with python keyboard press/navigation commands

2013-03-12 Thread Robert Sjoblom
> Finally, from a user experience point of view, it might be more logical to > make the keys w,a,s,z North, West,East and South respectively since its a > more logical correspondence to the compass points (assuming a standard > QWERTY keyboard layout). Most games use WASD, so user experience would

Re: [Tutor] Need help with python keyboard press/navigation commands

2013-03-12 Thread Alan Gauld
On 12/03/13 03:59, akuma ukpo wrote: I have tried def get_direction(self): """ whenever a key is pressed the character moves to the direction corresponding to the key """ 'North':w 'South': s 'East' : d 'West' : a What d

Re: [Tutor] Need help with python keyboard press/navigation commands

2013-03-11 Thread Danny Yoo
On Mon, Mar 11, 2013 at 8:59 PM, akuma ukpo wrote: > This is the problem > > Implement a function called get_direction which, on a particular character > , gives the > direction corresponding to that character. Do you know how to write a test case for this function? You had test cases for one o

[Tutor] Need help with python keyboard press/navigation commands

2013-03-11 Thread akuma ukpo
This is the problem Implement a function called get_direction which, on a particular character , gives the direction corresponding to that character. The correspondences are as follows:  The character ’w’ corresponds to the direction ’North’  The character ’a’ corresponds to the direction ’West’

Re: [Tutor] need help with python for counter

2012-12-19 Thread bob gailer
On 12/19/2012 12:40 AM, Brandon Merritt wrote: I feel silly, but I'm having the darndest time trying to figure out why this for counter won't work. I know that there is the count method for the string class, but I was just trying to do it the syntactical way to prove myself that I know the very

Re: [Tutor] need help with python for counter

2012-12-19 Thread Alan Gauld
On 19/12/12 05:40, Brandon Merritt wrote: the string class, but I was just trying to do it the syntactical way to prove myself that I know the very basics. Which is not a bad thing. just returning 1 or 0, even if I very clearly make sure that I specify at least 4 instances of the digit in my

Re: [Tutor] need help with python for counter

2012-12-19 Thread Dave Angel
On 12/19/2012 12:40 AM, Brandon Merritt wrote: > I feel silly, but I'm having the darndest time trying to figure out why > this for counter won't work. I know that there is the count method for the > string class, but I was just trying to do it the syntactical way to prove > myself that I know the

Re: [Tutor] need help with python for counter

2012-12-18 Thread शंतनू
On 19/12/12 5:12 PM, Mitya Sirenef wrote: > You can also do: > > count = sum(i==digit for i in number) > > I think this is very clear and short.. Another... import re count = len(re.findall(digit, number)) -- shantanoo ___ Tutor maillist - Tutor@py

Re: [Tutor] need help with python for counter

2012-12-18 Thread DoanVietTrungAtGmail
After incrementing for a little while, if the condition i == digit is not met for the current character, count is reset by the else: branch. Your count variable must feel frustrated like a dog which keeps being yanked back by a cord of length 0 when it tries to get free. Trung Doan == On

Re: [Tutor] need help with python for counter

2012-12-18 Thread Mitya Sirenef
On 12/19/2012 12:40 AM, Brandon Merritt wrote: I feel silly, but I'm having the darndest time trying to figure out why this for counter won't work. I know that there is the count method for the string class, but I was just trying to do it the syntactical way to prove myself that I know the very

[Tutor] need help with python for counter

2012-12-18 Thread Brandon Merritt
I feel silly, but I'm having the darndest time trying to figure out why this for counter won't work. I know that there is the count method for the string class, but I was just trying to do it the syntactical way to prove myself that I know the very basics. As of right now, my script is just returni

Re: [Tutor] Need help with python game program

2009-07-02 Thread Lie Ryan
Luke Paireepinart wrote: > Please don't reply to messages like this. If you are starting a new > thread, send a new e-mail to tutor@python.org . > DO NOT start a thread by replying to another message. If you do, it > will bork on people's machines who use threaded e-mail

Re: [Tutor] Need help with python game program

2009-06-30 Thread Dave Angel
jonathan wallis wrote: My problem is simple, is their a way to make a variable equal multiple numbers? Such as X = 5 through 10, and then the program makes x equal something random 5 through 10, or something similar. For a short question, why did you quote an entire mailing list digest?

Re: [Tutor] Need help with python game program

2009-06-30 Thread Luke Paireepinart
Please don't reply to messages like this. If you are starting a new thread, send a new e-mail to tu...@python.org. DO NOT start a thread by replying to another message. If you do, it will bork on people's machines who use threaded e-mail readers. also, please remove long, irrelevant quotations

Re: [Tutor] Need help with python game program

2009-06-30 Thread Mark Tolonen
"jonathan wallis" wrote in message news:57b8984c0906301738w1fb0e660m6bb2123399f27...@mail.gmail.com... My problem is simple, is their a way to make a variable equal multiple numbers? Such as X = 5 through 10, and then the program makes x equal something random 5 through 10, or something simil

[Tutor] Need help with python game program

2009-06-30 Thread jonathan wallis
My problem is simple, is their a way to make a variable equal multiple numbers? Such as X = 5 through 10, and then the program makes x equal something random 5 through 10, or something similar. 2009/6/30 > Send Tutor mailing list submissions to >tutor@python.org > > To subscribe or unsu