from terminaltables import SingleTable


def render(object, **kw):
    if object == 'gallows':
        render_gallows(**kw)
    if object == 'bank':
        render_bank(**kw)
    if object == 'game_state':
        render_game_state(**kw)


def render_gallows(parts=0, **kw):
    print("""
        ______
        |    |
        O    |
        |    |
        |    |
        /    |
             |
         ---------
    """)


def render_bank(letters=[], **kw):
    sz = 6  # Size of table
    if not any(letters):
        let = [' ']
    else:
        let = sorted(list(letters))
    table = SingleTable([let[i:i + sz] for i in range(0, len(let), sz)],
                        'Incorrect Guesses')
    table.inner_heading_row_border = False
    table.inner_row_border = True
    table.justify_columns = {idx: val for idx, val in
                             enumerate(['center'] * sz)}
    print()
    print(table.table)


def render_game_state(word="", found=[], **kw):
    for letter in word:
        if letter in found:
            print(letter, end='')
        else:
            print(' _ ', end='')

from terminaltables import SingleTable


def render(object, **kw):
    if object == 'gallows':
        render_gallows(**kw)
    if object == 'bank':
        render_bank(**kw)
    if object == 'game_state':
        render_game_state(**kw)


def render_gallows(parts=0, **kw):
    print("""
        ______
        |    |
        O    |
        |    |
        |    |
        /    |
             |
         ---------
    """)


def render_bank(letters=[], **kw):
    sz = 6  # Size of table
    if not any(letters):
        let = [' ']
    else:
        let = sorted(list(letters))
    table = SingleTable([let[i:i + sz] for i in range(0, len(let), sz)],
                        'Incorrect Guesses')
    table.inner_heading_row_border = False
    table.inner_row_border = True
    table.justify_columns = {idx: val for idx, val in
                             enumerate(['center'] * sz)}
    print("\n{}".format(table.table))


def render_game_state(word="", found=[], **kw):
    for letter in word:
        if letter in found:
            print(letter, end='')
        else:
            print(' _ ', end='')

Change the way we get a clean, blank line before rendering letter bank
Change the way we get a clean, blank line before rendering letter bank

  from terminaltables import SingleTable
  
  
  def render(object, **kw):
      if object == 'gallows':
          render_gallows(**kw)
      if object == 'bank':
          render_bank(**kw)
      if object == 'game_state':
          render_game_state(**kw)
  
  
  def render_gallows(parts=0, **kw):
      print("""
          ______
          |    |
          O    |
          |    |
          |    |
          /    |
               |
           ---------
      """)
  
  
  def render_bank(letters=[], **kw):
      sz = 6  # Size of table
      if not any(letters):
          let = [' ']
      else:
          let = sorted(list(letters))
      table = SingleTable([let[i:i + sz] for i in range(0, len(let), sz)],
                          'Incorrect Guesses')
      table.inner_heading_row_border = False
      table.inner_row_border = True
      table.justify_columns = {idx: val for idx, val in
                               enumerate(['center'] * sz)}
+     print("\n{}".format(table.table))
-     print()
-     print(table.table)
  
  
  def render_game_state(word="", found=[], **kw):
      for letter in word:
          if letter in found:
              print(letter, end='')
          else:
              print(' _ ', end='')
  
Change the way we get a clean, blank line before rendering letter bank
## Code Before:
from terminaltables import SingleTable


def render(object, **kw):
    if object == 'gallows':
        render_gallows(**kw)
    if object == 'bank':
        render_bank(**kw)
    if object == 'game_state':
        render_game_state(**kw)


def render_gallows(parts=0, **kw):
    print("""
        ______
        |    |
        O    |
        |    |
        |    |
        /    |
             |
         ---------
    """)


def render_bank(letters=[], **kw):
    sz = 6  # Size of table
    if not any(letters):
        let = [' ']
    else:
        let = sorted(list(letters))
    table = SingleTable([let[i:i + sz] for i in range(0, len(let), sz)],
                        'Incorrect Guesses')
    table.inner_heading_row_border = False
    table.inner_row_border = True
    table.justify_columns = {idx: val for idx, val in
                             enumerate(['center'] * sz)}
    print()
    print(table.table)


def render_game_state(word="", found=[], **kw):
    for letter in word:
        if letter in found:
            print(letter, end='')
        else:
            print(' _ ', end='')

## Instruction:
Change the way we get a clean, blank line before rendering letter bank
## Code After:
from terminaltables import SingleTable


def render(object, **kw):
    if object == 'gallows':
        render_gallows(**kw)
    if object == 'bank':
        render_bank(**kw)
    if object == 'game_state':
        render_game_state(**kw)


def render_gallows(parts=0, **kw):
    print("""
        ______
        |    |
        O    |
        |    |
        |    |
        /    |
             |
         ---------
    """)


def render_bank(letters=[], **kw):
    sz = 6  # Size of table
    if not any(letters):
        let = [' ']
    else:
        let = sorted(list(letters))
    table = SingleTable([let[i:i + sz] for i in range(0, len(let), sz)],
                        'Incorrect Guesses')
    table.inner_heading_row_border = False
    table.inner_row_border = True
    table.justify_columns = {idx: val for idx, val in
                             enumerate(['center'] * sz)}
    print("\n{}".format(table.table))


def render_game_state(word="", found=[], **kw):
    for letter in word:
        if letter in found:
            print(letter, end='')
        else:
            print(' _ ', end='')
