class Bok(object):

    def __init__(self, titel, forfattare, utg, isbn = "-"):
        self.titel = titel
        self.forfattare = forfattare
        self.utg = utg
        self.isbn = isbn

    def byt_isbn(self, isbn):
        self.isbn = isbn

    def visa_titel(self):
        print self.titel

    def hur_gammal(self):
        ar = 2011 - self.utg
        return ar

godnattsaga = Bok("The BFG", "Roald Dahl", 1982, "0-224-02040-4")

kursbok = Bok("Pythonkramaren II", "Henrik Eriksson", 2010)

kursbok.visa_titel()
