<jupyter_start><jupyter_text>2D Lists**Remember:** - Lists can be used to group different values together - it's just a collection of things.- You can make a list in Python by putting different things in a box of brackets `[]` separated by commas:Guess what? You can also make *lists of lists*!! These are called 2D lists in Python.You can make a 2D list like this:<jupyter_code># list number 1
fruit = ['apple', 'banana', 'grape', 'mango']

# list number 2
veggies = ['lettuce','carrot','cucumber','beet']

# create 2D list

# print 2D list<jupyter_output><empty_output><jupyter_text>What data type is food?<jupyter_code># print the type of food<jupyter_output><empty_output><jupyter_text>What is the length of your list?<jupyter_code># print length of food<jupyter_output><empty_output><jupyter_text>Make a list of meat with the following things: chicken, beef, fish, pork. Add meat to food.<jupyter_code># make a list of meats and save it to the variable meat

# add another list to food with meat

# print food<jupyter_output><empty_output><jupyter_text>What is the length of food now?<jupyter_code># print length of food<jupyter_output><empty_output><jupyter_text>Make a variable called double_food that contains the food list twice. Print out double_food.<jupyter_code># create double_food that contains food twice

# print double_food<jupyter_output><empty_output><jupyter_text>What is the length of double_food? Is this what you expected?<jupyter_code># print length of double_food<jupyter_output><empty_output><jupyter_text>You can also make 2D lists without assigning variables first:<jupyter_code># create a 2D list of numbers

# print 2D list of numbers<jupyter_output><empty_output><jupyter_text>What is the length of numbers?<jupyter_code># print length of numbers<jupyter_output><empty_output><jupyter_text>What happens if you add the food and numbers together?<jupyter_code># add food and numbers together and print it out<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08384146341463415, 'fraction_numerical': 0.00508130081300813, 'mean_word_length': 6.782608695652174, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '201469', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 648, 'n_tokens_neox': 630, 'n_words': 225, 'path': 'Lessons/Lesson06_2D_Lists_Intro.ipynb', 'repo_name': 'lechten/curriculum-notebooks', 'size': '1968'}