Update pytudes.py

This commit is contained in:
Peter Norvig 2024-03-14 09:33:37 -07:00 committed by GitHub
parent 28a1281832
commit e5b8e7ec40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,7 +164,7 @@ def format_notebook(title, year, url, comment=''):
sm = f'[S](https://studiolab.sagemaker.aws/import/github/norvig/pytudes{urlb})' sm = f'[S](https://studiolab.sagemaker.aws/import/github/norvig/pytudes{urlb})'
ti = f'<a href="{gh[4:-1]}" title="{comment}">{title}</a>' ti = f'<a href="{gh[4:-1]}" title="{comment}">{title}</a>'
if year == 2022: year = f'<u>{year}</u>' if year == 2022: year = f'<u>{year}</u>'
return f'| {co}{dn}{my}{nb}{sm} | {year} | {ti} |' return f'| {co} {dn} {my} {nb} {sm} | {year} | {ti} |'
def format_pythons() -> str: def format_pythons() -> str:
"""Make a table of multiple python programs.""" """Make a table of multiple python programs."""