Help with arrays

2009-08-25 Thread Gleb Belov
Hello! I'm working on an exercise wherein I have to write a Guess The Number game, but it's the computer who's guessing MY number. I can get it to work, but there's one obvious problem: the computer generates random numbers until one of them corresponds to my number, but it will often generate one

Re: Is it a bug?

2009-08-25 Thread Gleb Belov
On Aug 26, 12:59 am, Stephen Fairchild wrote: > Gleb Belov wrote: > > Hey everyone! I'm quite new to Python and equally new to newsgroups in > > general, so apologies if this makes no sense. > > > Basically, I was just exploring Python "arrays" on my own, si

Is it a bug?

2009-08-25 Thread Gleb Belov
Hey everyone! I'm quite new to Python and equally new to newsgroups in general, so apologies if this makes no sense. Basically, I was just exploring Python "arrays" on my own, since I come from C++. What I did was: >>> words = ["Hi!", "What's up?", "Bye!"] >>> print words ['Hi!', "What's up?", 'By