[Tutor] loops

alan.gauld@bt.com alan.gauld@bt.com
Wed, 5 Dec 2001 12:06:04 -0000


> program for tic tac toe. It works BUT, a simple loop
> would shorten this code considerably.  Is there a way
> to tell the program to go to the line:
> 
>  n = input("which sqaure")

Yes. 
You sound like someone who has programmed in BASIC at sometime?
If so you might find my online tutor which compares Python 
and BASIC useful:

http://www.freenetpages.co.uk/hp/alan.gauld/

It has specific topics on loops etc.

Alan G