In need of some help

Personal Overview: I am currently in an intensive data science program which requires a fairly interview process. The class sizes are very small because of how technical the course is. I was extremely excited and flattered to get excepted. Fast-forward, its a week into the course and I am starting to slowly behind, which is starting to concern me. I was lucky(a bit of sarcasm) enough to be a part of the most technically advanced group that has ever come through the program. I understand a great deal but there just pieces missing which has made completing things very difficult. I’m looking merely for help, not someone to complete the lab for me. I’m determined to come out of this course fully prepared to succeed in the field of data science.

The problem:

B) Create a dict to house your dataset of players.

  • The dictionary storing your players should be called poke_players .
  • Because only player_1 exists, there should only be one key:value pair.
  • The keys of this dict should be the player_id , and the values should be the dictionaries with single-player info, including the player_id (slightly redundant).

Make sure to check that your poke_players dictionary looks right after you’ve added player_1 . To see the contents of a variable, just run a code cell with the variable name in it.

Thanks

Rather then asking us why not ask your teachers? They have a great deal of knowledge about the course and are their to help you.
Your code could look something like this

# empty dictionary
my_dict = {}

# dictionary with integer keys
my_dict = {1: 'apple', 2: 'ball'}

# dictionary with mixed keys
my_dict = {'name': 'John', 1: [2, 4, 3]}

# using dict()
my_dict = dict({1:'apple', 2:'ball'})

# from sequence having each item as a pair
my_dict = dict([(1,'apple'), (2,'ball')])

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile:

1 Like