Error In the Code

This is the place for queries that don't fit in any of the other categories.

Error In the Code

Postby knip » Thu Jan 16, 2014 8:32 pm

HI Experts, ia new to python
while iam executing the code Iam getting below error i
Code: Select all
File "", line 30, in <module>
    if (List[col[G] in target):
KeyError: '1\r'

can you please help me in resolving this?
Last edited by metulburr on Thu Jan 16, 2014 8:34 pm, edited 1 time in total.
Reason: initial post lock, added code tags
Posts: 3
Joined: Thu Jan 16, 2014 8:23 pm

Re: Error In the Code

Postby metulburr » Thu Jan 16, 2014 8:39 pm

from just the traceback There is no key '1\r' in the dictionary.

However you need to give up the code that produced this error
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
User avatar
Posts: 2161
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: Error In the Code

Postby Yoriz » Thu Jan 16, 2014 8:39 pm

Hi welcome to the forum.
Please read the 'new users, read this' link in my signature.

I dont see any errors in the code ..... i dont see any code.
New Users, Read This
Join the #python-forum IRC channel on!
User avatar
Posts: 1628
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Return to General Coding Help

Who is online

Users browsing this forum: Google [Bot] and 6 guests