I\'ve a method that I want to be able to accept either a single string (a path, but not necessarily one that exists on the machine running the code) or a list/tuple of strin
Can't you do:
(i == list (i) or i == tuple (i))
It would reply if the input is tuple or list. The only issue is that it doesn't work properly with a tuple holding only one variable.