[Tutor] Help with "Guess the number" script

Scott W Dunning swdunning at cox.net
Sun Mar 2 01:52:15 CET 2014


On Mar 1, 2014, at 6:53 AM, spir <denis.spir at gmail.com> wrote:
> 
> I find directions very confusing. Also, they completely control you while explaining about nothing, like a user manual saying "press this, turn that". This is inappropriate for programming (and anything else): you need to understand! You need the why's and the how's, not only the what’s.
Trust me I’m confused by the directions as well.  The point of the ‘project’ is to learn the conditional operators (if, else, elif).
> 
> If not enough, they seem to teach you pretty weird practices: what is the point of the parameter guess_number?
guess_number is the number of guesses the user has used because there are only 10 allowed.

So;
(1) Please enter a number
(2) Please try again:
(3) “………………….”
(4) “……………….."

> It is not a parameter, less so of this function, but a counter proper to the game control, possibly used at the end to write "You won in [counter] trials." But it is not and cannot be used as a parameter to get_guess. Also, what is the point of requiring you to write this game without a loop? You need a loop. If they want to teach you other notions first, they must find another sample program.
We haven’t learned loops yet so he wanted us to try and just use conditional functions and be repetitive I guess.  I’m not even worries about that part, I’m just trying to get through this part first because it’s confusing me.  

I can post more of the instructions if needed too.

> 
> If the rest of the book is similar, I would encourage you to change. Maybe try one of those (or why not both in //):
> 
> * Alan Gauld's "Learning to Program": a very good point is this guide teaches to program, in general, *using* Python, mainly:
>  http://www.alan-g.me.uk/l2p/index.htm
> 
> * Al sweigart's "invent with python": this one teaches python & programming, using games as learning material:
>  http://inventwithpython.com/
Thank you for the links!!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140301/b24affd5/attachment.html>


More information about the Tutor mailing list