func_code: def weird_case(some_str):
      new_str = ''
      i = 0
      while i < len(some_str):
          if i == 0 or i % 2 == 0:
              new_str = new_str + some_str.upper()
          else:
              new_str = new_str + some_str.lower()
          i = i + 1
      return new_str