-4

So, I'm working on a python script that will auto click at the coordinates of set pixels. I'm encountering an issue where I need to split up two values in normal parentheses. Example:

(1023, 503)

Is there any way to even split this up into two variables or is it impossible?

1 Answers1

0

these values in parenthesis are called tuples, and they can be unpacked,

Example:

>>> value1,value2 = (1,0)
>>> value1
1
>>> value2
0

in your case:

variable1,variable2 = (1023, 503)
XxJames07-
  • 1,833
  • 1
  • 4
  • 17