Re: [Tutor] rock paper scissor lizard spock

2016-06-13 Thread Joel Goldstick
On Mon, Jun 13, 2016 at 7:14 PM, Katelyn O'Malley wrote: > Hi I am just getting into python and I am trying to create a rock paper > scissor lizard spock game for 3 people and I cannot figure out the scoring > of the players I attached the code below, any help/ideas is much > appreciated. > __

[Tutor] rock paper scissor lizard spock

2016-06-13 Thread Katelyn O'Malley
Hi I am just getting into python and I am trying to create a rock paper scissor lizard spock game for 3 people and I cannot figure out the scoring of the players I attached the code below, any help/ideas is much appreciated. ___ Tutor maillist - Tutor@p

Re: [Tutor] Loop in pre-defined blocks

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 6:28 PM Alan Gauld via Tutor wrote: > On 13/06/16 08:46, Ek Esawi wrote: > > Here is a beginner code that might work for you. Best of luck. EK > > > > b=[12, 20, 35] > > > > for i in range(len(b)): > > if i==0: > > c=0 > > else: > > c=b[i-1]

Re: [Tutor] Loop in pre-defined blocks

2016-06-13 Thread Ek Esawi
OPS! This code now produces desired results. I suppose that this works for smaller blocks. For larger blocks, it might be cumbersome. EK b=[12, 20, 35] for i in range(len(b)): if i==0: c=0 elif i==2: c=24 else: c=b[i-1] for j in range(c, b[i]):

Re: [Tutor] Hello everybody

2016-06-13 Thread Alan Gauld via Tutor
On 13/06/16 20:55, Влад wrote: >Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - I >will cut it out. What you think guys? No you are just a young whippersnapper. I've had students use my tutorial in their 70s (and in their pre-teens too) But is this also your start

Re: [Tutor] Python ODBC driver for Oracle 9

2016-06-13 Thread Alan Gauld via Tutor
On 13/06/16 11:47, Joseph John wrote: > I am trying to connect Python to Oracle 9 DB, checked for python ODBC > driver for oracle. Please be clear. Are you looking for an ODBC driver that will work with Oracle 9? Or are you looking for a Python DBAPI driver for Oracle 9? Those are two different

Re: [Tutor] Howto display progress as cmd is being executed via subprocess ?

2016-06-13 Thread Alan Gauld via Tutor
On 13/06/16 17:50, Ramanathan Muthaiah wrote: > Am aware of the module called 'progressbar' that can do this magic of > displaying progress as the cmd is executed. I'm not familiar with it, I don't believe its in the standard library? So I can only offer generalized advice. > def main(): >

Re: [Tutor] Hello everybody

2016-06-13 Thread Joel Goldstick
On Mon, Jun 13, 2016 at 3:55 PM, Влад <79099012...@yandex.ru> wrote: >Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - I >will cut it out. What you think guys? >** >--** >** **, >, PR- Rich PR >+79099012930 >

Re: [Tutor] Loop in pre-defined blocks

2016-06-13 Thread Alan Gauld via Tutor
On 13/06/16 08:46, Ek Esawi wrote: > Here is a beginner code that might work for you. Best of luck. EK > > b=[12, 20, 35] > > for i in range(len(b)): > if i==0: > c=0 > else: > c=b[i-1] > for j in range(c, b[i]): > print(i+1,j+1) The problem here is

Re: [Tutor] Loop in pre-defined blocks

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 1:33 PM Ek Esawi wrote: > Here is a beginner code that might work for you. Best of luck. EK > > b=[12, 20, 35] > > for i in range(len(b)): > if i==0: > c=0 > else: > c=b[i-1] > for j in range(c, b[i]): > print(i+1,j+1) > If

[Tutor] Hello everybody

2016-06-13 Thread Влад
Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - I will cut it out. What you think guys? ** --** ** **, , PR- Rich PR +79099012930 ** ___ Tutor maillist - Tutor@pytho

[Tutor] Howto display progress as cmd is being executed via subprocess ?

2016-06-13 Thread Ramanathan Muthaiah
Hello All, Am aware of the module called 'progressbar' that can do this magic of displaying progress as the cmd is executed. In fact, I have a test code to show progress and tried, it works. from progressbar import * import time def main(): progress = ProgressBar() for num in p

Re: [Tutor] Loop in pre-defined blocks

2016-06-13 Thread Ek Esawi
Here is a beginner code that might work for you. Best of luck. EK b=[12, 20, 35] for i in range(len(b)): if i==0: c=0 else: c=b[i-1] for j in range(c, b[i]): print(i+1,j+1) ___ Tutor maillist - Tutor@pyth

[Tutor] Python ODBC driver for Oracle 9

2016-06-13 Thread Joseph John
Hi All, I am trying to connect Python to Oracle 9 DB, checked for python ODBC driver for oracle. What I could find point out to http://cx-oracle.sourceforge.net/ , but this driver supports from Oracle 11 on wards. What I need is driver for Pyhton to get connected to Oracle 9. Did lots of google sea