func_code: def weird_case(some_str):
      new_str = ''
      for value in some_str:
          if value == ' ':
              new_str = new_str + value
          elif value is True:
              new_str = new_str + value.upper()
          else:
              new_str = new_str + value
      return new_str