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?
I'd usually do
x1 = y1 = x2 = y2 = 0
However, this hardly matters. Both versions are easy to grasp at a single glance.
2.1m questions
2.1m answers
60 comments
57.0k users