I'm trying to understand how this bit works:
Var_1, Var_2, Result = some_function()
the script:
def some_function():
return True, False, {"Some": "Dictionary"}
def main():
Var_1, Var_2, Result = some_function()
if not Var_1:
do something
else:
do something_else(Var_2, Result)
if __name__ == '__main__':
main()
For me the difficult to grasp is the bit of doing inception and provide(return) values which will be used in the main function and in the same trigger the some_function()
from within the main()
function.
Since I'm new to advanced concepts in python, I found it really interesting. How this "operation" is called so I can read a bit more about how it works. i.e. returning some values in line order separated by ,
and interpreting them based on the position in line(for the lack of better description).