|
1710 | 1710 | },
|
1711 | 1711 | {
|
1712 | 1712 | "cell_type": "code",
|
1713 |
| - "execution_count": 163, |
1714 |
| - "metadata": {}, |
1715 |
| - "outputs": [ |
1716 |
| - { |
1717 |
| - "name": "stdout", |
1718 |
| - "output_type": "stream", |
1719 |
| - "text": [ |
1720 |
| - "wklv lv wkh hqfubswhg phvvdjh!\n" |
1721 |
| - ] |
1722 |
| - } |
1723 |
| - ], |
| 1713 | + "execution_count": null, |
| 1714 | + "metadata": {}, |
| 1715 | + "outputs": [], |
1724 | 1716 | "source": [
|
1725 | 1717 | "def encrypt(message, encryption_map):\n",
|
1726 | 1718 | " encrypted = ''\n",
|
|
1736 | 1728 | },
|
1737 | 1729 | {
|
1738 | 1730 | "cell_type": "code",
|
1739 |
| - "execution_count": 164, |
1740 |
| - "metadata": {}, |
1741 |
| - "outputs": [ |
1742 |
| - { |
1743 |
| - "name": "stdout", |
1744 |
| - "output_type": "stream", |
1745 |
| - "text": [ |
1746 |
| - "this is the encrypted message!\n" |
1747 |
| - ] |
1748 |
| - } |
1749 |
| - ], |
| 1731 | + "execution_count": null, |
| 1732 | + "metadata": {}, |
| 1733 | + "outputs": [], |
1750 | 1734 | "source": [
|
1751 | 1735 | "def create_decryption_map(encryption_map):\n",
|
1752 | 1736 | " \"\"\"Actually just flip the keys and the values of the dictionary\"\"\"\n",
|
|
1785 | 1769 | },
|
1786 | 1770 | {
|
1787 | 1771 | "cell_type": "code",
|
1788 |
| - "execution_count": 176, |
1789 |
| - "metadata": {}, |
1790 |
| - "outputs": [ |
1791 |
| - { |
1792 |
| - "name": "stdout", |
1793 |
| - "output_type": "stream", |
1794 |
| - "text": [ |
1795 |
| - "Please enter numbers splitted by ',': 5,6,3,32\n", |
1796 |
| - "The sum until 32 is 32\n", |
1797 |
| - "The sum until 6 is 38\n", |
1798 |
| - "The sum until 5 is 43\n", |
1799 |
| - "The sum until 3 is 46\n" |
1800 |
| - ] |
1801 |
| - } |
1802 |
| - ], |
| 1772 | + "execution_count": null, |
| 1773 | + "metadata": {}, |
| 1774 | + "outputs": [], |
1803 | 1775 | "source": [
|
1804 | 1776 | "def convert_to_integers(numbers):\n",
|
1805 | 1777 | " integers = []\n",
|
|
0 commit comments