"Gary Beynon" <garybey...@hotmail.co.uk> wrote

I do have ArcGIS (Python 2.6) & Python 2.5 installed.
Are these causing a problem?

Yes, in Python v2 input will return the numeric version of the number - ie it converts from the string. In Python v3 - which is what your program expects - input always returns a string.

If you explicitly convert choice to an int and return that from menu and then test for the int option in your main code it should work in both Python versions.

Either that or change the file association in Windows to always pick up Version 3 - but that may not be good if you have other v2 scripts on your PC...

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to