LLD - Design — Elevator System
Identify the error in this code snippet:
class Request:
def __init__(self, floor, direction):
self.floor = floor
self.direction = direction
req = Request(3)
print(req.floor)