Text: Without using global variables
Develop a console program using Python's Draw program's flowchart. Write a Python program to create a simple queue system to manage customer flow in a bank. Below are the requirements:
1. Function to issue a new ticket with a new number, auto-increase by 1 starting from 1001.
2. Function to assign the first ticket in the queue to a selected service counter, from 1 to 4.
Upon program start, the program should display the following message:
Output example:
Enter '1' to '5' for the following options:
1. Issue new ticket number
2. Assign first ticket in queue to Counter 1
3. Assign first ticket in queue to Counter 2
4. Assign first ticket in queue to Counter 3
5. Assign first ticket in queue to Counter 4
0. Quit program
Tickets in queue: []
Counter assignment:
Counter 1: Not assigned
Counter 2: Not assigned
Counter 3: Not assigned
Counter 4: Not assigned
Enter your option: