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

  • Home
  • SEARCH
  • 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 8392765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:36:13+00:00 2026-06-09T19:36:13+00:00

Ok, this one should be simple. I have 3 dictionaries. They are all made,

  • 0

Ok, this one should be simple. I have 3 dictionaries. They are all made, ordered, and filled to my satisfaction but I would like to put them all in an overarching dictionary so I can reference and manipulate them more easily and efficiently.

Layer0 = {}
Layer1 = {}
Layer2 = {}

here they are when created, and afterwards I feebly tried different things based on SO questions:

Layers = {Layer0, Layer1, Layer2}

which raised a syntax error

Layers = {'Layer0', 'Layer1', 'Layer2'}

which raised another syntax error

(Layers is the Dictionary I’m trying to create that will have all the previously made dictionaries within it)

All the other examples I found on SO have been related to creating dictionaries within dictionaries in order to fill them (or filling them simultaneously) and since I already coded a large number of lines to make these dictionaries, I’d rather put them into a dictionary after the fact instead of re-writing code.

It would be best if the order of the dictionaries are preserved when put into Layers

Does anyone know if this is possible and how I should do it?

  • 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-09T19:36:15+00:00Added an answer on June 9, 2026 at 7:36 pm

    Dictionary items have both a key and a value.

    Layers = {'Layer0': Layer0, 'Layer1': Layer1, 'Layer2': Layer2}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one should be simple, but I can't figure it out myself. I have
This should be a simple one: I have an observableArray object called To in
This should be a simple one and I am dissapointed with myself but cant
This should be a simple one, but I'm a beginner with C#. Given a
Just starting out, this should be a simple one but I haven't been able
This should be a really, really simple one, I would assume. I'm throwing together
No luck after a few days of researching this one. Should be simple, but
This one should be pretty simple. The use case is that I have a
This one should be simple, but I don't really know how to find a
This should be a simple task, but I have seen several attempts on how

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.