Category
Technologies
Python Tutorial
Keep up to date with the latest news, techniques, and resources for Python programming. Our tutorials are full of practical walk throughs & use cases you can use to upskill.
Other technologies:
Training 2 or more people?Try DataCamp for Business
Featured
Python Data Type Conversion: A Guide With Examples
In this Python tutorial, you'll tackle implicit and explicit data type conversion of primitive and non-primitive data structures with the help of code examples!
Sejal Jaiswal
February 16, 2025
pandas read_csv() Tutorial: Importing Data
Importing data is the first step in any data science project. Learn why today's data scientists prefer the pandas read_csv() function to do this.
Kurtis Pykes
December 23, 2025
Python Dictionary Comprehension: Essentials You Need to Know
Learn all about Python dictionary comprehension. Learn how you can use it to create dictionaries, to replace (nested) for loops or lambda functions with map(), filter(), reduce(), and more!
Sejal Jaiswal
December 4, 2024
All posts
Pyright Guide: Fast Static Type Checking for Python Code
Learn how to install and use Pyright for static type checking in Python. This guide covers configuration, IDE integration, troubleshooting, and when to choose Pyright over Mypy.
Khalid Abdelaty
January 30, 2026
How to Check Python Version: Windows, macOS, and Linux
Learn how to check your Python version in the terminal, scripts, and virtual environments. Understand common issues and best practices for Windows, macOS, and Linux.
Allan Ouko
January 28, 2026
How to Normalize Data: A Complete Guide With Examples
Stop vanishing gradients and biased models. Learn how to normalize data using min-max and z-score in Scikit-learn to improve machine learning models.
Josep Ferrer
January 27, 2026
How to Read a File Line by Line in Python
Learn practical patterns for working with text files, logs, and large datasets in Python.
Oluseye Jeremiah
January 24, 2026
Python Write to File: How to Work With Text, CSV, and JSON Files Safely
Learn how to write to files in Python using built-in tools, common patterns, and best practices for real-world applications.
Oluseye Jeremiah
January 21, 2026
Ensemble Learning in Python: A Hands-On Guide to Random Forest and XGBoost
Learn ensemble learning with Python. This hands-on tutorial covers bagging vs boosting, Random Forest, and XGBoost with code examples on a real dataset.
Bex Tuychiev
January 21, 2026
Python Frozenset: Why It Exists and When You Need It
Discover how frozensets bring immutability and hashability to Python collections. Learn when to choose frozensets over regular sets.
Oluseye Jeremiah
January 13, 2026
Precision vs Recall: The Essential Guide for Machine Learning
Accuracy isn't enough. Learn the difference between precision and recall, understand the trade-off, and choose the right metric for your model.
Mark Pedigo
January 8, 2026
Python Shebang: Syntax, Best Practices, and Modern Alternatives
Master Python shebangs to build executable scripts, maintain environment portability, and apply industry-standard best practices.
Allan Ouko
January 5, 2026
Gurobi: Mathematical Optimization for Complex Problems
Master Gurobi optimization from setup to real-world applications. Learn to build models, configure solvers, and tackle linear, integer, and nonlinear programming problems efficiently.
Khalid Abdelaty
December 18, 2025
Python map() Function: A Complete Guide
Master Python's map() function with practical examples. Learn syntax, lazy evaluation, and when to use map() vs. list comprehensions for memory-efficient code.
Rajesh Kumar
December 10, 2025
Python REPL: A Hands-On Guide to Interactive Coding
Learn how Python’s REPL lets you run code interactively for testing, debugging, and learning. Discover essential commands, customization options, and advanced alternatives.
Allan Ouko
December 9, 2025