# There are some issues in this code. 
# I left a few comments to help you fix it while I'm on vacation

import boto3
import json

dynamodb = boto3.client('dynamodb')

def upload():
    with open('songs.json', 'r') as songfile:
        songs = json.load(songfile)
    for song in songs:
        response = dynamodb.put_item(
            # What was the table name? Can't remember.
            TableName='aTable?', 
            Item={
                # Pretty sure I need to clean up some data types here
                'Artist':{'A':song['Artist']},
                'SongTitle':{'S':song['SongTitle']},
                'price':{'P': song['price']},
                'studio':{'S': song['studio']},
                'address':{'A': song['address']}
            }
        )
        print(response)


4b83a73a377a63a89ed9d49ae046e9bf2f56599e
<mask token>

<mask token>


def upload():
    with open('songs.json', 'r') as songfile:
        songs = json.load(songfile)
    for song in songs:
        response = dynamodb.put_item(TableName='aTable?', Item={'Artist': {
            'A': song['Artist']}, 'SongTitle': {'S': song['SongTitle']},
            'price': {'P': song['price']}, 'studio': {'S': song['studio']},
            'address': {'A': song['address']}})
        print(response)

<mask token>
dynamodb = boto3.client('dynamodb')


def upload():
    with open('songs.json', 'r') as songfile:
        songs = json.load(songfile)
    for song in songs:
        response = dynamodb.put_item(TableName='aTable?', Item={'Artist': {
            'A': song['Artist']}, 'SongTitle': {'S': song['SongTitle']},
            'price': {'P': song['price']}, 'studio': {'S': song['studio']},
            'address': {'A': song['address']}})
        print(response)

import boto3
import json
dynamodb = boto3.client('dynamodb')


def upload():
    with open('songs.json', 'r') as songfile:
        songs = json.load(songfile)
    for song in songs:
        response = dynamodb.put_item(TableName='aTable?', Item={'Artist': {
            'A': song['Artist']}, 'SongTitle': {'S': song['SongTitle']},
            'price': {'P': song['price']}, 'studio': {'S': song['studio']},
            'address': {'A': song['address']}})
        print(response)

# There are some issues in this code. 
# I left a few comments to help you fix it while I'm on vacation

import boto3
import json

dynamodb = boto3.client('dynamodb')

def upload():
    with open('songs.json', 'r') as songfile:
        songs = json.load(songfile)
    for song in songs:
        response = dynamodb.put_item(
            # What was the table name? Can't remember.
            TableName='aTable?', 
            Item={
                # Pretty sure I need to clean up some data types here
                'Artist':{'A':song['Artist']},
                'SongTitle':{'S':song['SongTitle']},
                'price':{'P': song['price']},
                'studio':{'S': song['studio']},
                'address':{'A': song['address']}
            }
        )
        print(response)

