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
we will be moving to on October 1 2016
more details here
User avatar
Posts: 2244
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.
Due to the reasons discussed here we will be moving to on October 1 2016
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.
User avatar
Posts: 1672
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 10 guests