func_code: def weird_case(some_str):
      sent = ''
      i = True
      for words in some_str:
          if i:
              sent += words.upper()
          else:
              sent += words.lower()
          if words != ' ':
              i = not i
      return sent