Search Results

Results for "python functions"

76 articles found

Function blocks in code editor Functions & Modules
1 min read

Functions: Writing Reusable Code

Functions are the building blocks of any non-trivial Python program. They allow you to encapsulate a piece of logic and reuse it without copying and pastin…

Object oriented programming concept Object-Oriented Programming
1 min read

Object-Oriented Programming in Python

Object-oriented programming (OOP) is a paradigm that organizes code around objects rather than functions. Python is an OOP language from the ground up. A c…

API integration concept APIs
1 min read

Working with APIs in Python

APIs (Application Programming Interfaces) allow different software applications to talk to each other. Many services provide APIs to let developers access…

Debugging code concept Testing & Debugging
2 min read

Debugging Python Code Like a Pro

Debugging is an inevitable part of programming. The better you are at it, the faster you can fix issues and move on. Python comes with a built-in debugger…

Software testing concept Testing & Debugging
1 min read

Testing Your Python Code with unittest

Testing is an essential part of professional software development. It ensures your code works as expected and catches bugs before they reach production. Py…

Asynchronous programming concept Concurrency
1 min read

Introduction to Python's AsyncIO

Asynchronous programming is a way to write concurrent code that can handle many tasks without the overhead of threads or processes. AsyncIO is Python's lib…

Web development with Flask framework Web Development
1 min read

Building Web Apps with Flask

Flask is a micro web framework for Python. It is lightweight and easy to get started with, making it perfect for beginners who want to build web applicatio…

A laptop screen displaying lines of colorful code against a dark background Technology
1 min read

Learning to Code: Where to Start

Learning to code can feel like trying to climb a mountain in the fog. The key is to pick one language and a small project that excites you. Python is often…

Warning signs over code Technology
1 min read

Avoiding Common AI Coding Pitfalls

After many mistakes, I have learned to watch for common AI coding pitfalls. Never trust generated code without understanding it, you might introduce subtle…

JavaScript code highlighting the 'this' keyword JavaScript
1 min read

Understanding 'this' in JavaScript

The 'this' keyword in JavaScript is notoriously confusing because its value depends on how the function is called. In the global context, this refers to th…

A scale heavily tipped to one side with data points Machine Learning
1 min read

The Struggle with Imbalanced Datasets

Imbalanced datasets are the bane of my existence. You have a million examples of one class and only a hundred of the other. The model just gets lazy and pr…