[Tutor] Trying to select an input from another Python file & output that input in the main game program

Mark Lawrence breamoreboy at gmail.com
Fri Jun 18 15:56:03 EDT 2021


On 18/06/2021 19:10, Alan Gauld via Tutor wrote:

> 
> You could simplify that by splitting it into two separate loops,
> one to get the user name the other for the password. No need for the
> nested structure which is harder to read and debug.

For anyone who's interested here's an excellent article on looping with 
python http://nedbatchelder.com/text/iter.html

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list