Category Archives for "Python"

How to Reverse a String in Python

If you are wondering how to reverse a string in Python, this can easily be done with slice notation. However, I will show you a few quick ways to reverse Python strings. I will list these in order difficulty. Two Main Points Reverse Python Strings with Slice Notation When slicing a string, you should think […]

How to Use and Tune XGBOOST

Why XGBoost is Awesome? One of the most implemented and widely used classifiers is XGBoost, and there are reasons for it XGBoost has an ability to implement both Classification and Regression models using the same core algorithm. It is one of the most used algorithms in Kaggle and daily use case applications. First of all, […]

How to Create a Function in Python

A function is a reusable block of code that performs a certain functionality. Functions are fundamental building blocks of a programming language as they introduce modularity and reusability in the code.  In this article, we will learn how to create and call a function in python. We will also go through the important concepts like […]

How to Create a Dictionary in Python ( 3 Ways )

The dictionary (short form dict) is a fundamental data structure in Python. It uses key-value pairs to store the data in an efficient manner. Creating dictionary is a simple task in python however, we can use different ways to create a dictionary that fits our real data.  In this article, we will learn three methods […]