An object-oriented parking lot management system built in Python.
This project simulates an automated parking lot system that can accommodate up to n cars at any given time. Each parking slot is assigned a number starting from 1, increasing with distance from the entry gate. The objective is to automate the ticketing and parking allocation process without human involvement.
-> Record the car's registration number and colour.
-> Assign the nearest available parking slot.
-> Issue a virtual ticket indicating the allocated slot.
-> When the car exits, the system marks the corresponding slot as available again.
In addition to handling basic operations, the system must comply with regulatory requirements to support the following queries:
-> Get registration numbers of all cars with a specific colour.
-> Get the slot number for a car with a specific registration number.
-> Get all slot numbers occupied by cars of a given colour.
- Create a parking lot with a fixed capacity
- Park cars with registration number and colour
- Allocate the nearest available slot
- Free up slots when cars leave
- Slot numbers by car colour
- Registration numbers by colour
- Slot number by registration number
- Print the current parking status
parking-lot/
├── parking_lot.py # Main Python file with ParkingLot and Car classes
└── README.md # Project documentation
python parking_lot.py