Skip to content

Instantly share code, notes, and snippets.

@thekindlyone
Created October 2, 2014 08:32
Show Gist options
  • Save thekindlyone/04ec6e86b04bfab00e79 to your computer and use it in GitHub Desktop.
Save thekindlyone/04ec6e86b04bfab00e79 to your computer and use it in GitHub Desktop.
Output of simple.py
D:\pythonary\chall>python simple.py
Please Enter Name: Aritra Das
Enter class (1 for economy, 2 for business): 1
Booking Successful. Your seat is: B1
A B C D
1 O * O O
2 O O O O
3 O O O O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: Derrick
Enter class (1 for economy, 2 for business): 2
Booking Successful. Your seat is: B3
A B C D
1 O B O O
2 O O O O
3 O * O O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: seating
A B C D
1 O B O O
2 O O O O
3 O B O O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: Derrick
Seat Already booked for this name. Seat number: B3
A B C D
1 O B O O
2 O O O O
3 O * O O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: another
Enter class (1 for economy, 2 for business): 2
Booking Successful. Your seat is: C3
A B C D
1 O B O O
2 O O O O
3 O B * O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: quit
D:\pythonary\chall>python simple.py
Please Enter Name: seating
A B C D
1 O B O O
2 O O O O
3 O B B O
4 O O O O
Legend =>
Booked: B
Open: O
Your Seat: *
Please Enter Name: quit
D:\pythonary\chall>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment