func_code: def weird_case(string):
      i = True
      string1 = ' '
      for char in string:
          if i:
              string1 += char.upper()
          else:
              string1 += char.lower()
          if char != ' ':
              i = not i