Why does votes[j[0]] = j[1] return an indexError? | Grok Learning

I am trying to solve a problem on Grok Learning. The problem requests I create a code that indexes a person's name and their favorite dessert. I have not finished printing the dictionary and am still working on the questions, but noticed this loop returns an indexError:

votes = {}
nv = input("name:vote ")
g = nv.replace(':', ' ')
j = g.split()
votes[j[0]] = j[1]
while nv:
  g = ''
  j = []
  nv = input("name:vote ")
  g = nv.replace(':', ' ')
  j = g.split()
  votes[j[0]] = j[1]

It returns:

Traceback (most recent call last):
  File "program.py", line 12, in <module>
    votes[j[0]] = j[1]
IndexError: list index out of range

I'm not sure if it is trying to replace a dictionary? Does J have a limit to its range? I've done a bit of research and can only find that I am trying to reach an invisible number.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum