class fib:
	def __init__(self):
		self.prev = 0
		self.curr = 1
	
	def __iter__(self):
		print("poziva se iter")
		return self
	
	def __next__(self):
		value = self.curr
		self.curr += self.prev
		self.prev = value
		return value
		
def fibonacci():
    prev, curr = 0, 1
    print("call fibonacci")
    while True:
        print("pre yielda")
        yield curr
        print("posle yielda")
        prev, curr = curr, prev + curr

34ab4780856d023676a591f8f7f7be5cd166fc21
class fib:

    def __init__(self):
        self.prev = 0
        self.curr = 1
    <mask token>
    <mask token>


<mask token>

class fib:

    def __init__(self):
        self.prev = 0
        self.curr = 1

    def __iter__(self):
        print('poziva se iter')
        return self
    <mask token>


<mask token>

class fib:

    def __init__(self):
        self.prev = 0
        self.curr = 1

    def __iter__(self):
        print('poziva se iter')
        return self

    def __next__(self):
        value = self.curr
        self.curr += self.prev
        self.prev = value
        return value


<mask token>

class fib:

    def __init__(self):
        self.prev = 0
        self.curr = 1

    def __iter__(self):
        print('poziva se iter')
        return self

    def __next__(self):
        value = self.curr
        self.curr += self.prev
        self.prev = value
        return value


def fibonacci():
    prev, curr = 0, 1
    print('call fibonacci')
    while True:
        print('pre yielda')
        yield curr
        print('posle yielda')
        prev, curr = curr, prev + curr

class fib:
	def __init__(self):
		self.prev = 0
		self.curr = 1
	
	def __iter__(self):
		print("poziva se iter")
		return self
	
	def __next__(self):
		value = self.curr
		self.curr += self.prev
		self.prev = value
		return value
		
def fibonacci():
    prev, curr = 0, 1
    print("call fibonacci")
    while True:
        print("pre yielda")
        yield curr
        print("posle yielda")
        prev, curr = curr, prev + curr
