Solution for the assignment for Parking Lot problem
Run the following command to execute code by using commands in input.txt
python main.py -i input.txt
- Run the python file in the terminal to start the CLI
python main.py
- Create parking slots
Create_parking_lot <no of slots>
- Park a car
Park <vehicle_reg_no> driver_age <age_of_driver>
- Get slot numbers with specific age of drivers
Slot_numbers_for_driver_of_age <age_of_driver>
- Get slot number with specific vehicle reg number
Slot_number_for_car_with_number <vehicle_reg_no>
- Get vehicle reg number with specific age of driver
Vehicle_registration_number_for_driver_of_age <age_of_driver>
- Leave/Empty a specific slot
Leave <slot_number>