-3

I'm using python for a long time. but it was always strange to me why In python references, commands are written like this:
del var1[,var2[,var3[....,varN]]]]
I know that if I want to use the above command I should write it in this way:
del var1, var1
I can't understand the meaning of [] is it related to the lists? any help will be appreciated.

DSM
  • 342,061
  • 65
  • 592
  • 494
hamid kavianathar
  • 301
  • 2
  • 4
  • 13

1 Answers1

2

Its just showing that these parameters are optional. This is normal style for references. There is nothing to do with this in python. Just a tutorial explanation.

I bealive, this is taken origin from Usage message

msangel
  • 9,895
  • 3
  • 50
  • 69