func_code: def weird_case(some_str):
      i = 0
      ls = []
      while i < len(some_str):
          if i % 2 == 0:
              ls.append(some_str[i].upper())
          else:
              ls.append(some_str[i].lower())
          i = i + 1
      return ''.join(ls)