Re: [Tutor] newbie exercises

2006-03-29 Thread Steve Nelson
On 3/29/06, Keo Sophon <[EMAIL PROTECTED]> wrote: > Is it bitwise operator? Could you give one example? >>> for a in range(2): ... for b in range(2): ... print a, b, a&b ... 0 0 0 0 1 0 1 0 0 1 1 1 > Sophon S. ___ Tutor maillist - Tu

Re: [Tutor] newbie exercises

2006-03-29 Thread Keo Sophon
On Monday 27 March 2006 19:53, Steve Nelson wrote: > On 3/27/06, josip <[EMAIL PROTECTED]> wrote: > > Can someone give me exercises to do with loops, maybe functions to? > > How about a program that produces truth tables for the basic gates? > AND, NAND, NOT, OR, XOR? > > You could write a function

Re: [Tutor] newbie exercises

2006-03-27 Thread Steve Nelson
On 3/27/06, josip <[EMAIL PROTECTED]> wrote: > Can someone give me exercises to do with loops, maybe functions to? How about a program that produces truth tables for the basic gates? AND, NAND, NOT, OR, XOR? You could write a function for each gate, and one to produce a truth table. S. __

[Tutor] newbie exercises

2006-03-27 Thread josip
Hi,   Python is my first language. I have finished loops, now I'm going to functions. I'm working with Learning Python 2ed book. Can someone give me exercises to do with loops, maybe functions to?   Thanks Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger wit