No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Good summary of working with dictionaries. But... :) How you can extract an key from a dictionary of a dictionary? Let's say we have the following dictionary: {'AAA':{'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': 'text4'}, 'BBB':{'BBB1':{'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': 'text4'}, 'BBB2':{'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': 'text4'}, 'BBB3':{'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': …
If you are on Linux you can make the program executable, typing ./programname in terminal. For that you need to point to the interpreter, add at the beginning of the program, first line: [CODE]#!/usr/bin/python[/CODE] And at the bottom where the initialization are made, before making object class: [CODE]if __name__ == …
I have read some documentation about python, but no examples on how could you can extract Keys from a double dictionary. To understand better here is an example: Let's say we have the following dictionary: {'AAA': {'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': 'text4'}, 'BBB': {'BBB1':{'KEY1':'text1', 'KEY2':'text2', 'KEY3:' 'text3', 'KEY4': 'text4'}, 'BBB2':{'KEY1':'text1', …
Hi, I am a little newbie with python, more use of C++ The goal is to search a specifed filename e trought multiple directories. After finding the file, search trough it's content some description on some strings and write out the description on a xml file. So far i manage …
The End.
playonlcd