A simple web-based reference for Python's built-in functions and math module. I built this because I was tired of constantly googling basic Python functions while coding.
This guide covers over 60 Python functions including:
- All the essential built-ins like
len(),range(),print(), etc. - Math module functions for calculations and trigonometry
- Practical examples you can actually use
- A search feature to find what you need quickly
Just open the site and start browsing. Use the search box if you're looking for something specific. Click any code example to copy it to your clipboard.
Want a PDF version? Hit the download button and you'll get a nicely formatted reference guide you can save offline.
Pretty straightforward:
git clone https://github.com/YOUR_USERNAME/python-functions-reference.git
cd python-functions-referenceThen just open index.html in your browser. That's it.
If you use VS Code, grab the Live Server extension and right-click the HTML file to open it with live reload.
The easiest way is GitHub Pages:
- Push your code to GitHub
- Go to Settings > Pages in your repo
- Set it to deploy from the main branch
- Wait a few minutes and your site will be live
You can also use Netlify, Vercel, or any static hosting service.
Found a function that's missing? Want to improve an example? Just fork the repo and send a pull request.
To add a new function, find the right section in index.html and add a new card:
<div class="function-card">
<div class="function-name">your_function()</div>
<div class="function-description">What it does</div>
<div class="function-syntax">your_function(params)</div>
<div class="function-example">your_function(1, 2) → 3</div>
</div>Built with vanilla HTML, CSS, and JavaScript. No frameworks, no build process, no complications.
Uses jsPDF for the download feature and includes a basic search that filters functions as you type.
Works in any modern browser. Tested on Chrome, Firefox, Safari, and Edge.
I kept finding myself looking up the same Python functions over and over. Sure, the official docs are comprehensive, but sometimes you just want a quick reference with examples.
This started as a simple HTML page for my own use and grew into something I thought others might find useful too.
MIT License - use it however you want.
If this saves you some time, consider starring the repo. If you find bugs or have suggestions, open an issue.