Immutable and Mutable Types

Duncan Booth duncan.booth at invalid.invalid
Mon Mar 17 19:00:10 CET 2008


Stargaming <stargaming at gmail.com> wrote:

> On Mon, 17 Mar 2008 16:03:19 +0000, Duncan Booth wrote:
> 
>> For the answer I actually want each asterisk substitutes for exactly one
>> character.
> 
> Played around a bit and found that one:
> 
> Python 3.0a3+ (py3k:61352, Mar 12 2008, 12:58:20)
> [GCC 4.2.3 20080114 (prerelease) (Debian 4.2.2-7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> a = 1
>>>> b = 1//1
>>>> if a is b: print('yes!')
> ...
>>>> b
> 1
>>>> type(b)
><type 'int'>

"the whole point of setting the puzzle was that I expected it to be ripped 
to shreds", thanks for supporting my expectations.




More information about the Python-list mailing list