functions

Beginner-friendly tutorials on defining and calling functions in Python.

Python OOP Project: Build a Bank Account Manager (Capstone)

This Python OOP project answers the question every beginner quietly asks after learning classes: when would I actually create one? We will build a small bank account manager that uses inheritance, magic methods, properties, custom exceptions, and JSON persistence, the exact tools you met one at a time across the OOP chapter, snapped together into a program you can run and keep. “An expert is a person who has made all the mistakes that can be made in a very ... Read More

GenAI: LLM APIs (OpenAI, Anthropic, Structured Output & Function Calling)

A chat tab is a demo; a product needs code. The moment you call an LLM (Large Language Model) from Python, three problems show up fast: streaming the reply, getting JSON you can trust, and letting the model trigger real tools. Function calling in Python solves that last one, and this guide covers all four building blocks with working OpenAI and Anthropic (Claude) code. “An API call to an LLM is just an HTTP request. The magic is in what ... Read More

DL: Activation Functions: sigmoid, tanh, ReLU, softmax

Python activation functions are what let a neural network learn curves instead of straight lines, and this hands-on guide covers the five you will meet most in deep learning: sigmoid, tanh, ReLU, Leaky ReLU, and softmax. You will learn what each one does, when to reach for it, why ReLU became the default for hidden layers, and how the vanishing gradient problem quietly killed early deep networks. “Programming is the art of telling another human being what one wants the ... Read More