<jupyter_start><jupyter_text><NAME> | Section 2 | Team 9  5.1 Individual Assignment - Install MongoDB on your system.- Download the sample MongoDB dumps I uploaded to Canvas (including the Pokemon sample DB)- Connect your programming language of choice (Python or Java) to MongoDB.- "Prove" that MongoDB is working on your system and that you have connected your programming language to MongoDB by taking a "real screenshot" (take a picture with your mobile phone camera) of your computer running the following task:- your programming language is querying and printing to screen all the Pokemon characters that have a candy_count of >=40.<jupyter_code>import pymongo
import pprint
from pymongo import MongoClient
client = MongoClient('localhost', 27017)

#Connecting to the database
db = client.samples_pokemon

#Getting the collection
pokemon = db.samples_pokemon

#Getting all the pokemon character names with candy_count>=40
for p in pokemon.find({"candy_count": {"$gte": 40}},{"name":1,"_id":0}):
    pprint.pprint(p)
client.close()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.01594746716697936, 'mean_word_length': 5.66875, 'pattern_counts': {'":': 4, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '271692', 'license': 'Unlicense', 'n_tokens_mistral': 316, 'n_tokens_neox': 292, 'n_words': 132, 'path': 'Mongo DB in Python.ipynb', 'repo_name': 'Shalini-cmd/Data-Design-Representation', 'size': '1074'}