Toggle

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Oct 9 06:57:03 CEST 2014


Seymore4Head wrote:
> I want to toggle between color="Red" and color="Blue"

toggle = {"Red": "Blue", "Blue": "Red"}
color = toggle[color]



More information about the Python-list mailing list