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