In Erlang, you are able to pass what I think are called conditional function arguments (please let me know if my terminology is incorrect) which allows me to write a function such as:
foobar("string", A) ->
This function will accept 2 arguments, but the 1st one has to be "string", otherwise it wont run.
I was wondering if you can do something similar in Python, and to what extent?
If you can't, how do you go about creating conditions for your functions so that it wont run unless expected arguments are passed to it? Is it only possible to do it with the "if" condition?