title: How do I add a suffix to the end of each list element?
body: <p>I have two, unequal length lists. The first list contains variable names for a longitudinal study, the other contains suffixes for these variables. The user supplies a CSV from which the variable names are read, and then is prompted to enter the (n) number of iterations of these variables, and the names of the n number of suffixes </p>
  
  <p>Here is a fake example of what I mean</p>
  
  <p>Number of iterations: 2</p>
  
  <p>Suffix1: pre</p>
  
  <p>Suffix2: 6month</p>
  
  <p>List 1: 
          <code>['mood1', 'mood2', 'mood3', 'dep1', 'dep2', 'dep3']</code></p>
  
  <p>List 2: 
          <code>['pre', '6month']</code></p>
  
  <p>Desired concatenation:</p>
  
  <p><code>['mood1_pre', 'mood2_pre', 'mood3_pre', 'dep1_pre', 'dep2_pre', 'dep3_pre', 'mood1_6month', ..., 'dep3_6month']</code></p>
  
  <p>I have the program working fully, except the output splits each letter of the concatenated list into its own element, for example:</p>
  
  <pre><code>How many iterations of the variables do you need?: 3
  Variable Suffix 1: pre
  Variable Suffix 2: 6m
  Variable Suffix 3: 12m
  ['B', 'o', 'b', '_', 'p', 'r', 'e', 'J', 'o', 'e', '_', 'p', 'r', 'e', 'J', 'i',
   'm', '_', 'p', 'r', 'e', 'A', '_', 'p', 'r', 'e', 'B', '_', 'p', 'r', 'e', 'C',
   '_', 'p', 'r', 'e', '1', '_', 'p', 'r', 'e', '2', '_', 'p', 'r', 'e', '3', '_',
   'p', 'r', 'e', '1', '4', '_', 'p', 'r', 'e', 'B', 'o', 'b', '_', '6', 'm', 'J',
   'o', 'e', '_', '6', 'm', 'J', 'i', 'm', '_', '6', 'm', 'A', '_', '6', 'm', 'B',
   '_', '6', 'm', 'C', '_', '6', 'm', '1', '_', '6', 'm', '2', '_', '6', 'm', '3',
   '_', '6', 'm', '1', '4', '_', '6', 'm', 'B', 'o', 'b', '_', '1', '2', 'm', 'J',
   'o', 'e', '_', '1', '2', 'm', 'J', 'i', 'm', '_', '1', '2', 'm', 'A', '_', '1',
   '2', 'm', 'B', '_', '1', '2', 'm', 'C', '_', '1', '2', 'm', '1', '_', '1', '2',
   'm', '2', '_', '1', '2', 'm', '3', '_', '1', '2', 'm', '1', '4', '_', '1', '2',
   'm']
  </code></pre>
  
  <p>I am using this to make the new list
  <code>newvarlist.extend((varlist[vars] + '_' + varsuffix[j]))</code></p>