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
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 //
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
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'
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
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'