Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:06:52+00:00 2026-06-09T18:06:52+00:00

I am trying to create a working dictionary, it works, but I have problem.

  • 0

I am trying to create a working dictionary, it works, but I have problem.
I have to pack a lot of data, but the problem is that I have variable count of strings.
I want to pack in every step, I was using

struct.pack(polozka.param, polozka.text, 0, polozka.pointer, polozka.size)

where polozka.param are parameters,
.text is english word,
0 is offset, .pointer is pointing to the translation of the word in language, and .size is size required.

I didn’t come up with any other idea so far, and I would be grateful for every advice i can find 🙂

If I start my dictionary I have result for example

Active
 -translated word
Active
 -translated word

but want to have

Active
 -translated word, translated word,etc.

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:06:53+00:00Added an answer on June 9, 2026 at 6:06 pm

    You don’t access the keys of a dictionary using attributes (.), if you have a dictionary you use dictionary['key'].

    And not sure if I understood your question correctly, but I assume what you are looking for is a data structure like this:

    my_dict = {
        'Active': ['translated word', 'translated word'],
        'foo': []
    }
    

    Here are the keys of the dictionary a string and the values are corresponding lists, which have your translated words in it (also strings).

    Also, I’d be good if you could provide some code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a drop down list i have it working but
I'm trying to create a piece of code but cannot get it working. The
im trying to create offline desktop application. everything is working fine. The only problem
I'm working on creating a dictionary and I'm trying to create ListMenu dynamically as
This is my first time working with python. I'm trying to create a dictionary
I am trying to create a working way to show/collapse content that is added
I'm trying to create a drop down button and its almost working except one
I'm trying to create a database with 12 different tables which has been working
I am currently working on an android project and I am trying to create
I'm trying to create a DataGrid dynamically. Declarative creation is working fine: A source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.