-2

I met a line in python code:

onevariable for(a,b) in range(1,10)

Can you help me how it should be 'read'? Couldn't 'google' any example of 'for' with brackets. Very strange line

user2216
  • 809
  • 1
  • 8
  • 24

1 Answers1

0

It's just a target list; tuple assignment is available just about everywhere variables are set, including in a comprehension.

Davis Herring
  • 36,443
  • 4
  • 48
  • 76