Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
simple question on dictionary usage
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Edward Kozlowski, post: 3113394"] I think this should do the trick. There's probably something more concise than this, but I can't think of it at the moment. egt = {} for key in record: if key.startswith('E'): egt[key] = record[key] print egt {'E5': '1148', 'E4': '1157', 'E6': '1182', 'E1': '1137', 'E3': '1163', 'E2': '1169'} -Edward Kozlowski [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
simple question on dictionary usage
Top