TRiBByX
8/9/2018 - 9:43 AM

List of options printer.

Prints a passed list into

  1. option
  2. option based on the list indecies
def print_options(items):
  options = ''
  x = 1
  options += 'Pick an option by typing the number and pressing return\n'
  for item in items:
      options += '{x}. {item}\n'.format(x=x, item=item)
      x += 1
  print options