{'name': 'Junior',
'age': 11,
'color': 'brown'}
tracks = {
'Drake': ['Best I Ever Had', "Marvin's Room", 'One Dance', 'Controlla'],
'Lady Gaga': ['Just Dance', 'Paparazzi'],
'DaBaby': ['Rockstar', 'Suge'],
'Olivia Rodrigo': ["Driver's License"]
}
tracks['Lady Gaga']
tracks['Drake'].append('One Dance')
tracks['Maroon 5'] = ['Wake Up Call', 'Payphone']
tracks
tracks = {
'Drake': ['Best I Ever Had', "Marvin's Room", 'One Dance', 'Controlla'],
'Lady Gaga': ['Just Dance', 'Paparazzi'],
'DaBaby': ['Rockstar', 'Suge'],
'Olivia Rodrigo': ["Driver's License"]
}
grandma_tree = {
"name": "Grandma",
"children": [
{"name": "Dad",
"children": [
{"name": "Me"},
{"name": "Brother"}
]
},
{"name": "my aunt",
"children": [
{"name": "Cousin 1"},
{"name": "Cousin 2",
"children": [
{"name": "Cousin 2 Jr."}
]
}
]
}
]
}
np.pi
import numpy as np
np.pi
pi
np.array([1, 2, 3]) + np.array([4, 5, -3])
Table.read_table('data/pups.csv')
from datascience import *
pups = Table.read_table('data/pups.csv')
pups
Table.read_table('covid.csv')
import json
def read_json(path):
return json.load(open(path, 'r'))
read_json('data/family.json')