Skip to main content
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:
AI AgentsAI NewsArtificial IntelligenceAWSAzureBusiness IntelligenceChatGPTDatabricksdbtDockerExcelGenerative AIGitGoogle Cloud PlatformHugging FaceJavaJuliaKafkaKubernetesLarge Language ModelsMongoDBMySQLNoSQLOpenAIPostgreSQLPower BIPySparkRScalaSnowflakeSpreadsheetsSQLSQLiteTableau
GroupTraining 2 or more people?Try DataCamp for Business
Python

How to Remove an Item from a List in Python

Understand how to remove items from a list in Python. Familiarize yourself with methods like remove(), pop(), and del for list management.
Allan Ouko's photo

Allan Ouko

August 1, 2024

Python

Python any() Function: Guide With Examples and Use Cases

The any() function in Python returns True if at least one element in an iterable (list, tuple, set, etc.) is true, and False otherwise.
Stephen Gruppetta's photo

Stephen Gruppetta

July 31, 2024

Python

How to Use the Python pop() Method

Learn how to use Python's pop() method to remove elements from lists and dictionaries, including how to remove items while iterating. Learn to avoid common errors like IndexError and KeyError.
Allan Ouko's photo

Allan Ouko

July 31, 2024

Python

What is Cosine Distance?

Explore cosine distance and cosine similarity. Discover calculations, applications, and comparisons with other metrics. Learn to implement in R and Python using numpy.
Vinod Chugani's photo

Vinod Chugani

July 28, 2024

Machine Learning

Stochastic Gradient Descent in Python: A Complete Guide for ML Optimization

Learn Stochastic Gradient Descent, an essential optimization technique for machine learning, with this comprehensive Python guide. Perfect for beginners and experts.
Bex Tuychiev's photo

Bex Tuychiev

July 24, 2024

Python

How to Round Up a Number in Python

Discover three straightforward techniques to round up numbers in Python: using math.ceil() from the math module, using the decimal module, and NumPy.
Allan Ouko's photo

Allan Ouko

July 22, 2024

Python

What is Manhattan Distance?

Learn how to calculate and apply Manhattan Distance with coding examples in Python and R, and explore its use in machine learning and pathfinding.
Vinod Chugani's photo

Vinod Chugani

July 17, 2024

Python

Python: Remove Duplicates From A List (Five Solutions)

To remove duplicates from a Python list while preserving order, create a dictionary from the list and then extract its keys as a new list: list(dict.fromkeys(my_list)).
Stephen Gruppetta's photo

Stephen Gruppetta

July 16, 2024

Python

How to Upgrade Python and Pip in Windows, MacOS, and Linux

Read our step-by-step instructions for how to upgrade Pip and Python on Windows, macOS, and Linux. Keep your environment up-to-date and compatible.
Samuel Shaibu's photo

Samuel Shaibu

July 15, 2024