from collections import deque

people = [("일반","A"), ("일반", "B"), ("예약", "C")]

dq = deque()

for i in range(len(people)):
    if people[i][0] == "일반":
        dq.append(people[i][1])
    else:
        dq.appendleft(people[i][1])

print(dq)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: