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