On Sat, May 28, 2011 at 11:31 PM, Nobody wrote:
> Not Python, but:
>
> #define SIX 1 + 5
> #define NINE 8 + 1
> ...
> printf("six times nine is: %d\n", SIX * NINE);
*AWESOME*!! That is brilliant!
DNA FTW.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-lis
On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote:
> That IS funny. Interesting how a careful choice of arugments will fool us.
> One of my favorite math jokes is like that. A teacher asked a student to
> reduce the following fraction:
> 16
>
> 64
>
> He says "all I have to do is
On Sat, May 28, 2011 at 10:27 PM, bch wrote:
> And of course, a programmer cannot tell the difference between
> Halloween and Christmas day.
Well known, of course. But a lot of modern programmers don't speak
octal, they only use another power-of-two base; it's as though
someone's cast a hex on th
On May 23, 11:30 pm, rusi wrote:
> On May 23, 5:30 am, Steven D'Aprano
>
>
> +comp.lang.pyt...@pearwood.info> wrote:
> > On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote:
> > > Stef Mientki wrote:
>
> > >>must of us will not use single bits these days, but at first sight, this
> > >>looks f
On May 23, 5:30 am, Steven D'Aprano wrote:
> On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote:
> > Stef Mientki wrote:
>
> >>must of us will not use single bits these days, but at first sight, this
> >>looks funny :
>
> > a=2
> > b=6
> > a and b
> >>6
> > a & b
> >>2
> >
On 22-May-11 15:23 PM, Stef Mientki wrote:
hello,
must of us will not use single bits these days,
but at first sight, this looks funny :
a=2
b=6
a and b
6
a& b
2
a or b
2
a | b
6
cheers,
Stef
5.2. Boolean Operations — and, or, not
These are the Boolean operations, ordered by ascendi
On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote:
> Stef Mientki wrote:
>>
>>must of us will not use single bits these days, but at first sight, this
>>looks funny :
>>
> a=2
> b=6
> a and b
>>6
> a & b
>>2
> a or b
>>2
> a | b
>>6
>
> That IS funny. Interesting how
On Mon, May 23, 2011 at 8:39 AM, Tim Roberts wrote:
> That IS funny. Interesting how a careful choice of arugments will fool us.
> One of my favorite math jokes is like that. A teacher asked a student to
> reduce the following fraction:
> 16
>
> 64
>
> He says "all I have to do is cancel
Stef Mientki wrote:
>
>must of us will not use single bits these days,
>but at first sight, this looks funny :
>
a=2
b=6
a and b
>6
a & b
>2
a or b
>2
a | b
>6
That IS funny. Interesting how a careful choice of arugments will fool us.
One of my favorite math jokes i
On 5/22/2011 5:57 PM, Thomas 'PointedEars' Lahn wrote:
Stef Mientki wrote:
must of us will not use single bits these days,
but at first sight, this looks funny :
a=2
b=6
a and b
6
a& b
2
a or b
2
a | b
6
Change the order of the operands and see what happens.
or change a,b to 1,2
Stef Mientki wrote:
> must of us will not use single bits these days,
> but at first sight, this looks funny :
>
a=2
b=6
a and b
> 6
a & b
> 2
a or b
> 2
a | b
> 6
Change the order of the operands and see what happens.
--
PointedEars
Bitte keine Kopien per E-Mail
hello,
must of us will not use single bits these days,
but at first sight, this looks funny :
>>> a=2
>>> b=6
>>> a and b
6
>>> a & b
2
>>> a or b
2
>>> a | b
6
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo