title: Is there a space? Python
body: <p>Im looking for a way to say, if there is no space in this value then say hey there is no space, if there is then change that space to a + and evaluate it...</p>
  
  <p>I got the evaluation correct but can't get it to go to that step when a space is found. The code keeps getting stuck on ""if not value.isspace():"" even when there is a space present.</p>
  
  <pre><code>    for value in nulls_measure:
          try:
              value = value.strip()
              nulls_measure[nulls_measure.index(value)] = float(value) if value else 0
          except ValueError:
              if not value.isspace():
                  spacing_error = tk.Tk()
                  spacing_error.wm_title("Spacing Error")
                  tk.Label(spacing_error,text="Please make sure there is spacing in abrasive length.").grid(row=0,column=0)
                  tk.Button(spacing_error,text="     OK     ",command=spacing_error.destroy).grid(row=1,column=0)
                  raise ValueError("Space Error")
  
              else:
                  try:
                      nulls_measure[nulls_measure.index(value)] = eval(value.replace(" ","+"))
                  except ValueError:
                      numbers_only = tk.Tk()
                      numbers_only.wm_title("Letter Error")
                      tk.Label(numbers_only,text="Please make sure inputs are numbers, not letters.").grid(row=0,column=0)
                      tk.Button(numbers_only,text="     OK     ",command=numbers_only.destroy).grid(row=1,column=0)
                      raise ValueError("Letter Error")
  </code></pre>