solutions

Updating a Dictionary

Update the dictionary provided in the editor making the following changes:

  • Update the name from "RMOTR" to "rmotr.com"
  • Include a new key email with the value 'questions@rmotr.com'
  • Update the list of courses to include "Django Web Development"

Test Cases

test django is in courses list - Run Test

def test_django_is_in_courses_list():
    assert rmotr_dict['courses'] == ['Intro to Python', 'Advanced Pyhton', 'Django Web Development']

test email is correct - Run Test

def test_email_is_correct():
    assert rmotr_dict['email'] == 'questions@rmotr.com'

test name is updated - Run Test

def test_name_is_updated():
    assert rmotr_dict['name'] == 'rmotr.com'