Skip to content

Instantly share code, notes, and snippets.

@vmesel
Created May 5, 2016 00:37
Show Gist options
  • Save vmesel/70b4a4748c5c84f6eeb44e70b98bcbcc to your computer and use it in GitHub Desktop.
Save vmesel/70b4a4748c5c84f6eeb44e70b98bcbcc to your computer and use it in GitHub Desktop.
def milhar(self, num):
*mil, cen,dez,uni = num
return(mil)
# Se eu rodar isso aqui com o número: 12005, ele me retorna (['1','2'])
def milhoes(self, num):
*milhoes, mil, cen,dez,uni = num
return(milhoes, mil)
# Se eu rodar isso aqui com o número: 1200500, ele me retorna (['1', '2', '0'], '0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment