Skip to content

Instantly share code, notes, and snippets.

@zeldani
Created February 27, 2014 18:52
Show Gist options
  • Save zeldani/9256551 to your computer and use it in GitHub Desktop.
Save zeldani/9256551 to your computer and use it in GitHub Desktop.
class matematica:
a = 2
b = 5
def conta(self, x):
return matematica.a*x+matematica.b
objeto = matematica()
print matematica.a
print matematica.b
print objeto.conta(3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment