{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Problem 1\n", "\n", "Create a set called mySet that has three elements in in." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Problem 2\n", "\n", "Add the string 'pepper' to the following set." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "spices = {'Maple bacon', 'Barbecue', 'Steak', 'Chili'}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Problem 3\n", "\n", "Calculate the length of the following set." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "easternCanadaProvinceCapitals = {'Ottawa', 'Fredericton', 'Quebec City', 'Halifax', 'Charlottetown', 'St. Johns'}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Problem 4\n", "\n", "Remove 'Moscow' from the following set." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "westernCanadaProvinceCapitals = {'Vancouver', 'Saskatoon', 'Regina', 'Calgary', 'Moscow'}" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.6" } }, "nbformat": 4, "nbformat_minor": 4 }