Re: A question I have...

2010-10-30 Thread Steven D'Aprano
On Sat, 30 Oct 2010 15:05:37 +1300, Lawrence D'Oliveiro wrote: In message mailman.168.1287872943.2218.python-l...@python.org, 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

Re: A question I have...

2010-10-29 Thread Lawrence D'Oliveiro
In message mailman.168.1287872943.2218.python-l...@python.org, 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 //

A question I have...

2010-10-23 Thread 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 this means, why it doesn't work and what

Re: A question I have...

2010-10-23 Thread geremy condra
On Thu, Oct 21, 2010 at 7:25 PM, Joe Shoulak joepshou...@yahoo.com 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'

Re: A question I have...

2010-10-23 Thread Vlastimil Brom
2010/10/22 Joe Shoulak joepshou...@yahoo.com: 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

Re: A question I have...

2010-10-23 Thread Chris Rebert
On Thu, Oct 21, 2010 at 7:25 PM, Joe Shoulak joepshou...@yahoo.com 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'