table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:44:04 +05:30
parent b76e4c546a
commit 93a9b0f30f
2 changed files with 31 additions and 0 deletions

View File

@ -8,6 +8,30 @@
**Note**:- This is in no way affiliated with the original [30-seconds-of-code](https://github.com/Chalarangelo/30-seconds-of-code/).
## Table of Content
# :books: List
<ul><li>chunk</li>
<li>compact</li>
<li>count_occurences</li>
<li>deep_flatten</li>
<li>difference</li>
<li>shuffle</li>
<li>spread</li>
<li>zip</li>
</ul>
# :scroll: String
<ul><li>count_vowels</li>
</ul>
# :heavy_division_sign: Math
<ul><li>gcd</li>
<li>lcm</li>
<li>max_n</li>
<li>min_n</li>
</ul>
<hr></hr>
## :books: List
### chunk

View File

@ -34,6 +34,13 @@ start = open("static-parts/readme-start.md").read() + '\n\n'
end = open("static-parts/readme-end.md").read()
toAppend = ''
tag_dict = tagger()
toAppend += '## Table of Content \n'
for category in tag_dict:
toAppend = toAppend + '# ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n <ul>'
for snippet in tag_dict[category]:
toAppend += f'<li>{snippet}</li>\n'
toAppend += '</ul>\n'
toAppend += '<hr></hr> \n'
for category in tag_dict:
toAppend = toAppend + '## ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n'
for snippet in tag_dict[category]: