Jul 242012
Programming in python: Most efficient way to assign a value of zero to multiple variables at once on newest questions tagged python – Stack Overflow
I’m trying to initiate the variables at zero, so it currently looks like this
x1,y1,x2,y2=(0,0,0,0)
It works, but just seems a little redundant. Is there a cleaner way?
See Answers
source: http://stackoverflow.com/questions/11634190/most-efficient-way-to-assign-a-value-of-zero-to-multiple-variables-at-once
Programming in python: programming-in-python
Recent Comments