Skip to content

Fix missing colon in example code in function header#148839

Open
manoj-km24 wants to merge 1 commit intopython:mainfrom
manoj-km24:code-fix
Open

Fix missing colon in example code in function header#148839
manoj-km24 wants to merge 1 commit intopython:mainfrom
manoj-km24:code-fix

Conversation

@manoj-km24
Copy link
Copy Markdown
Contributor

@manoj-km24 manoj-km24 commented Apr 21, 2026

In Doc/library/bisect.rst , a code snippet seems to miss a colon ':' ,violating python syntax.

>>> def grade(score)
   ...     i = bisect([60, 70, 80, 90], score)
   ...     return "FDCBA"[i]
   ...

This PR addresses this issue and corrects the example with a colon.


📚 Documentation preview 📚: https://cpython-previews--148839.org.readthedocs.build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants