I have this code:
def make_service(service_data, service_code):
routes = ()
curr_route = ()
direct = ()
first = service_data[0]
curr_dir = str(first[1])
for entry in service_data:
direction = str(entry[1])
stop = entry[3]
if direction == curr_dir:
curr_route = curr_route + (stop, )
print((curr_route))
When I print((curr_route)), it gives me this result:
('43009',)
('43189', '43619')
('42319', '28109')
('42319', '28109', '28189')
('03239', '03211')
('E0599', '03531')
How do I make it one tuple? i.e.
('43009','43189', '43619', '42319', '28109', '42319', '28109', '28189', '03239', '03211', 'E0599', '03531')