Skip to content

Commit 93e79db

Browse files
committed
Update solution.ipynb to print new entry line
1 parent 3e88b38 commit 93e79db

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

templates/solution.ipynb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,31 @@
191191
"\n",
192192
"print(\"Solution markdown file created!\")"
193193
]
194+
},
195+
{
196+
"cell_type": "markdown",
197+
"metadata": {},
198+
"source": [
199+
"## Create New Entry"
200+
]
201+
},
202+
{
203+
"cell_type": "code",
204+
"execution_count": null,
205+
"metadata": {},
206+
"outputs": [],
207+
"source": [
208+
"entry_title = f\"[{title}]({url})\"\n",
209+
"extra_spaces = ' ' * (98 - (len(entry_title)))\n",
210+
"\n",
211+
"entry = f\"\"\"\n",
212+
"| {day} | {entry_title}{extra_spaces} | [Solution](solutions/{output_filename}) | {site} | {difficulty} | {note2self} |\n",
213+
"\"\"\"\n",
214+
"\n",
215+
"print(\"Copy-paste new entry below to README.md.\")\n",
216+
"\n",
217+
"print(entry)\n"
218+
]
194219
}
195220
],
196221
"metadata": {

0 commit comments

Comments
 (0)