Re: [Tutor] Query regarding loop problem

2015-08-29 Thread Cameron Simpson
On 29Aug2015 22:37, Martin Mwaka wrote: I would be grateful for some help please. I have recently started learning python and I am attemping to write a programme where a user enters a number between 1 and 5, and the computer generates random numbers until an equivalent number is achieved. The

Re: [Tutor] Query regarding loop problem

2015-08-29 Thread Alan Gauld
On 29/08/15 22:37, Martin Mwaka wrote: myNumber = input("Input a number between 1 and 5: ") myNumber is now a *string* representing a number from 1-5. while computerNumber != 0: if myNumber != computerNumber: computerNumber = random.randint(1,5) computerNumber is now a random

Re: [Tutor] aws/cloud questions..

2015-08-29 Thread Alan Gauld
On 29/08/15 01:24, bruce wrote: I'm considering taking a dive into the "cloud" with an app that would be comprised of distributed machines, running py apps, talking to db on different server(s), etc.. OK, Where are you starting from? Can you already program in Python and use databases? Can you