Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def minhafunc(argumento1, argumento2):
if argumento1 > argumento2:
raise Exception('Erro: argumento1 precisa ser menor que argumento2')
args = (3,2)
minhafunc(*args) #erro
kwargs = {'argumento1':1, 'argumento2':2}
minhafunc(**kwargs) # ok :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.