In [1]:
import math

In [2]:
math.pow?

In [3]:
math.pow(2,10)


Out[3]:
1024.0

In [4]:
class Pessoa(object):


  File "<ipython-input-4-fc27db0c0660>", line 1
    class Pessoa(object):
                         ^
SyntaxError: unexpected EOF while parsing

In [5]:
class Numero(object):
    
    def __init__(self, x):
        self.numero = x
        
    def __add__(self, other):
        return self.numero + other

In [6]:
n = Numero(4)

In [7]:
n + 5


Out[7]:
9

In [8]:
class Pessoa(object):
    
    def __init__(self, nome):
        self.nome = nome
    
    def __call__(self):
        print(self.nome)

In [9]:
p = Pessoa('Rodolfo')

In [10]:
p.nome


Out[10]:
'Rodolfo'

In [11]:
p()


Rodolfo

In [ ]: