Is it possible to code a H-drive + Split Arcade that transitions to Right Arcade + H Drive with a button press

So we have two drivers. One loves split arcade, the other being an oddball prefers right arcade. Is it possible to code a controller code with split arcade and right arcade while having h drive? I’m using Python btw.

yh

so basically right for H drive + split arcade u can just code standard split arcade but use left side horizontal axis for the holonomic part, or some other axis.

For right arcade H drive just do right arcade but use left axis horizontal for strafing or u can use other combinations ig

To code it, you can use a boolean driver_1 = true. Then, you can do like

driver_1 = True
while True:
  if driver_1:
    #random driver 1 code
  else: #now its driver 2
    #random driver 2 code
  if button pressed:
    driver_1 = False

You could have 2 different programs by just copying the original code onto an new one and change it in the second one and label it different