func_code: def weird_case(some_str):
      some_str = some_str.split().upper()
      i = 0
      while i < len(some_str):
          return some_str
      i = 0
      a = some_str.split(' ')
      l = []
      for word in a:
          if i:
              l.append(word.upper())
          else:
              l.append(word)
          i = int(not i)
      return ' '.join(l)