|
230 | 230 | "outputs": [], |
231 | 231 | "source": [ |
232 | 232 | "# Test the function on a new input \n", |
233 | | - "multiply(['ant', 'bat', 'cat'])" |
| 233 | + "# multiply(['ant', 'bat', 'cat'])" |
234 | 234 | ] |
235 | 235 | }, |
236 | 236 | { |
|
863 | 863 | "# Split sentence into a list of words\n", |
864 | 864 | "\n", |
865 | 865 | "# Loop over the words...\n", |
866 | | - " # see if they are in the \"french\" dictionary\n", |
867 | | - " # if they are, print their translation" |
| 866 | + " # see if they are in the \"french\" dictionary\n", |
| 867 | + " # if they are, print their translation" |
868 | 868 | ] |
869 | 869 | }, |
870 | 870 | { |
|
897 | 897 | "# Initialize an empty translated sentence \n", |
898 | 898 | "\n", |
899 | 899 | "# Loop over the words...\n", |
900 | | - " # see if they are in the \"french\" dictionary\n", |
901 | | - " # if they are, translate them and add to translation\n", |
902 | | - " # Otherwise, add to translated" |
| 900 | + " # see if they are in the \"french\" dictionary\n", |
| 901 | + " # if they are, translate them and add to translation\n", |
| 902 | + " # Otherwise, add to translated" |
903 | 903 | ] |
904 | 904 | }, |
905 | 905 | { |
|
1116 | 1116 | "outputs": [], |
1117 | 1117 | "source": [ |
1118 | 1118 | "# Test the function on original input\n", |
1119 | | - "triple_third(nums)" |
| 1119 | + "# triple_third(nums)" |
1120 | 1120 | ] |
1121 | 1121 | }, |
1122 | 1122 | { |
|
1128 | 1128 | "outputs": [], |
1129 | 1129 | "source": [ |
1130 | 1130 | "# Test the function on a new input\n", |
1131 | | - "triple_third([1,1,1,1,1,1,2,2,2])" |
| 1131 | + "# triple_third([1,1,1,1,1,1,2,2,2])" |
1132 | 1132 | ] |
1133 | 1133 | }, |
1134 | 1134 | { |
|
1254 | 1254 | }, |
1255 | 1255 | "outputs": [], |
1256 | 1256 | "source": [ |
1257 | | - "pig_latin(\"jumps over the lazy dog\")" |
| 1257 | + "# Test the function\n", |
| 1258 | + "# pig_latin(\"jumps over the lazy dog\")" |
1258 | 1259 | ] |
1259 | 1260 | }, |
1260 | 1261 | { |
|
1774 | 1775 | }, |
1775 | 1776 | "outputs": [], |
1776 | 1777 | "source": [ |
1777 | | - "result = random_casablanca(casablanca, \"Casablanca\")\n", |
1778 | | - "print(result)" |
| 1778 | + "# Test the function \n", |
| 1779 | + "# result = random_casablanca(casablanca, \"Casablanca\")\n", |
| 1780 | + "# print(result)" |
1779 | 1781 | ] |
1780 | 1782 | } |
1781 | 1783 | ], |
|
0 commit comments