LLD - Design — Elevator System
What will be the output of this code snippet?
class Elevator:
def __init__(self):
self.current_floor = 0
def move_up(self):
self.current_floor += 1
el = Elevator()
el.move_up()
el.move_up()
print(el.current_floor)