func_code: def weird_case(some_str):
      words = some_str.split()
      string = 1
      some_str = []
      for word in words:
          word = list(word)
          for letter in word:
              if string > 0:
                  some_str.append(letter.upper())
              else:
                  some_str.append(letter)
              string = -string
          some_str.append(' ')
          string = string
      some_str = ''.join(SoMe_StR[:-1])
      return some_str