[Tutor] Simple guessing game - need help with the math

2014-08-13 Thread Greg Markham
Hello again, I'm working on one of the more advanced (at this stage of my learning process), albeit optional, assignments. The objective is to write a program that tries to guess your number from 1 to 100. After each guess, you tell it if it's (h)igher, (l)ower or (c)orrect, and eventually it'll

Re: [Tutor] Exercise to work on

2014-08-13 Thread Joseph Lee
Hi Keith, As a follow-up: I'm sure others might have mentioned this, but I also recommend doing exercises presented in the book or reference you're using to learn Python. Cheers, Joseph - Original Message - From: keith papa Hi, am a newbie to python and I wondering if you guys can give

Re: [Tutor] Exercise to work on

2014-08-13 Thread Joseph Lee
Hi Keith, It depends on what you want to do with Python in the end (by the way, if statement is not a function). Here are some of my suggestions (based on current topics and things to come later): 1. Write a loop which prints even numbers from 1 to 100. 2. Write a program which determines

Re: [Tutor] Exercise to work on

2014-08-13 Thread Greg Markham
Keith, This should get you started... http://learnpythonthehardway.org/book/ http://www.codecademy.com/en/tracks/python http://docs.python-guide.org/en/latest/intro/learning/ Happy coding! --Greg On Tue, Aug 12, 2014 at 1:52 PM, keith papa wrote: > Hi, am a newbie to python and I wonderin

[Tutor] Fwd: Re: Simple guessing game - need help with the math

2014-08-13 Thread Greg Markham
My apologies, this reply didn't make its way to the list. > > On Aug 13, 2014 1:25 AM, "diliup gabadamudalige" wrote: > > > > Wouldn't it be easier to work it this way? > > for example: > > number range =100 > > your selection = 82 > > > > round 1 > > computer guesses 50 > > you say higher > > th

Re: [Tutor] Simple guessing game - need help with the math

2014-08-13 Thread Dave Angel
Greg Markham Wrote in message: Please post as text. Because you used html, I cannot quote your message, or indeed even see it at all while replying. There are other problems frequently triggered by html, but on to my response. You don't specify the python version you're writing for. I have