airplane-reservation-system-python-2
π
:
Announcement
- different names is asked for each seat
- different phone number is asked for each seat
- All the issues present in the first program have been fixed in this one with more adaptations
If you want the code before this change you can access that code here
- Adding new exception handeling cases soon
- A Train Seat Reservation system program is still a work in progress
License and copyright
This repository is licensed under MIT License
Program Output
Latest Update:
How to customize this..
You can change the colouring of the text... ie. change {bcolors.WARNING}...{bcolors.ENDC
to {bcolors.FAIL}...{bcolors.ENDC}
You can change the availability of seats by chnaging the boolean value of occupies_seats[]
variable True
means that the seat is booked False
means that the seat is available
You can ctrl+f
to find all the https://github.com/voyager2005
and ctrl+r
to replace them with your github link
Exception Handeling
Case 1: When accpeting phone numbers
Case 2: When entering the date
Case 3: Small Summary:
Case 4: When entering the time for any booking on the same day
Case 5: Trying to book already reserved seats
Case 6: Trying to book your seat again
Displays the same message as above