Re: A question I have...

2010-10-29 Thread Steven D'Aprano
On Sat, 30 Oct 2010 15:05:37 +1300, Lawrence D'Oliveiro wrote: > In message , geremy > condra wrote: > >> ... dividing strings by a number doesn't make sense. > > The logical meaning would be the opposite of multiplying strings by a > number: > > >>> "abc" * 3 > 'abcabcabc' > >>> "ab

Re: A question I have...

2010-10-29 Thread Lawrence D'Oliveiro
In message , geremy condra wrote: > ... dividing strings by a number doesn't make sense. The logical meaning would be the opposite of multiplying strings by a number: >>> "abc" * 3 'abcabcabc' >>> "abcabcabc" // 3 'abc' >>> "abcabcabc" // "abc" 3 >>> "abcabcabd" //

Re: A question I have...

2010-10-23 Thread Chris Rebert
On Thu, Oct 21, 2010 at 7:25 PM, Joe Shoulak wrote: > I'm trying to make a sports simulation program and so far everything has > worked until I try entering: > > Score1 = (Team1Off + Team2Def)/2 > > I get the error: > > TypeError: unsupported operand type(s) for /: 'str' and 'int' > > Can someone

Re: A question I have...

2010-10-23 Thread Vlastimil Brom
2010/10/22 Joe Shoulak : > I'm trying to make a sports simulation program and so far everything has > worked until I try entering: > > Score1 = (Team1Off + Team2Def)/2 > > I get the error: > > TypeError: unsupported operand type(s) for /: 'str' and 'int' > > Can someone please explain to me what th

Re: A question I have...

2010-10-23 Thread geremy condra
On Thu, Oct 21, 2010 at 7:25 PM, Joe Shoulak wrote: > I'm trying to make a sports simulation program and so far everything has > worked until I try entering: > > Score1 = (Team1Off + Team2Def)/2 > > I get the error: > > TypeError: unsupported operand type(s) for /: 'str' and 'int' > > Can someone