파이썬 프로그래밍 질문이여..

qw3709의 이미지

onlineMarket()
i=0
alluser=[]
def createAccount():
    global alluser
    global i
    i+=1
    print("Create account...")
    user={'username':'','userid':'','userpass':''}
    print("Enter your name : ")
    username=input()
    user['username']=username
    print("Enter id : ")
    userid=input()
    user['userid']=userid
    print("Enter password : ")
    userpass=input()
    user['userpass']=userpass
    print("Congratulations!! You have account id :"+user['userid'])
    alluser.append(user)

간단한 함수인데
오류가자꾸 뜨네요.. 이유를모르겠어여

Traceback (most recent call last):
  File "<pyshell#212>", line 1, in <module>
    imp.reload(onlinemarketsystem)
  File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python36-32\lib\imp.py", line 315, in reload
    return importlib.reload(module)
  File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", line 166, in reload
    _bootstrap._exec(spec, module)
  File "<frozen importlib._bootstrap>", line 618, in _exec
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python36-32\onlinemarketsystem.py", line 3, in <module>
    onlineMarket()
  File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python36-32\onlinemarketsystem.py", line 27, in onlineMarket
    if accountcheck == "n":
  File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python36-32\onlinemarketsystem.py", line 20, in createAccount
    user['userpass']=userpass
KeyError: 'qw3709'

비밀번호 입력후 이렇게 오류가뜨네요