Python Nice answer to a Python dictionary question

  • Thread starter Thread starter scottdave
  • Start date Start date
AI Thread Summary
A recent discussion highlights a response to a Python dictionary question that, while informative, fails to directly answer the original query. Concerns were raised about the amount of information provided, with some feeling it may overwhelm the original poster (OP). Despite the thoroughness, the response did not address the specific issue the OP faced, which was evident from their code snippet. Another user, @scottdave, offered a more relevant explanation that better suited the OP's needs. Overall, the conversation emphasizes the importance of targeted responses in programming discussions.
scottdave
Science Advisor
Homework Helper
Insights Author
Messages
2,009
Reaction score
974
So here is what I think a pretty nice explanation to a Python dictionary question. https://www.physicsforums.com/threads/creating-a-new-dictionary.987207/#post-6326948
@Nick-stg sounded concerned that he might be giving too much information. While there is a lot of info in his post, it isn't really giving away an "answer". The OP should have a better understanding how Python dictionaries, to be able to derive a solution on his own.
 
  • Like
Likes berkeman and jedishrfu
Technology news on Phys.org
Yeah, looks like a promising new member. :smile:
 
scottdave said:
here is what I think a pretty nice explanation to a Python dictionary question

While the post does give some good general information about Python dictionaries (although one of the snippets of code has an error), it's general information that the OP of the thread already has--his code snippet makes it clear that he knows how to iterate over a dict and how to check for the existence of a key. The post by Nick-stg does not address the specific question the OP of the thread was asking. Your post, @scottdave, does that.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top