title: Rewriting Certain parts of a text file (dynamically)
body: <p>I have a text file like this</p>
  <pre class="lang-none prettyprint-override"><code>A,OXXX#XXXX#XXOO
  B,OOXX#XXXX#XXOO
  C,OXXX#XXXO#OXXO
  D,OOXX#XXXX#XXOO
  E,OOOX#OXXO#XXOO
  F,##XX#OXXX#XO##
  </code></pre>
  <p>Its something like a movie cinema
  Where O is available seats, X is unavailable seats and # is a wall</p>
  <pre><code>bookSeat = input('Enter seats to book: ').split(',')
      for booking in bookSeat:
          bookRow = booking[0]
          bookColumn = booking[1:]
          availableSeats = seatingPlan[bookRow][int(bookColumn)-1]
              if availableSeats == 'O':
                  f = open('Monkey Goes East-202209081430.txt','w')
                  #idk whats the next step
              elif availableSeats == 'X':
                  print(&quot;Seats are already booked!')
              elif availableSeats == '#':
                  print('These seats are unavailable')
  </code></pre>
  <p>So if i input A1,B14, it will update the text file into</p>
  <pre class="lang-none prettyprint-override"><code>A,**X**XXX#XXXX#XXOO
  B,OOXX#XXXX#XXO**X**
  C,OXXX#XXXO#OXXO
  D,OOXX#XXXX#XXOO
  E,OOOX#OXXO#XXOO
  F,##XX#OXXX#XO##
  </code></pre>
  <p>Bolded to show its been change</p>
  <p>please help</p>