Hafeezul Kareem has Published 328 Articles

Send SMS updates to mobile phone using python

Hafeezul Kareem

Hafeezul Kareem

Updated on 11-Jul-2020 06:49:54

2K+ Views

In this tutorial, we are going to learn how to send SMS in Python. We will be using Twilio for sending SMS.First of all, go the Twilio and create an account. You will get free trial account. And finish settings.We have to install a module called twilio to work with ... Read More

self in Python class

Hafeezul Kareem

Hafeezul Kareem

Updated on 11-Jul-2020 06:47:23

1K+ Views

In this tutorial, we are going to learn about the self in Python. You must be familiar with it if you are working with Python. We will see some interesting things about.Note − self is not a keyword in Python.Let's start with the most common usage of self in Python.We'll ... Read More

Python Grouped Flattening of list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 09:04:25

171 Views

In this tutorial, we are going to write a program that flattens a list that contains sub-lists. Given number flatten the sublists until the given number index as parts. Let's see an example to understand it clearly.Inputlists = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]] number = ... Read More

Python Group by matching second tuple value in list of tuples

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 09:03:26

475 Views

In this tutorial, we are going to write a program that groups all the tuples from a list that have same element as a second element. Let's see an example to understand it clearly.Input[('Python', 'tutorialspoints'), ('Management', 'other'), ('Django', 'tutorialspoints'), ('React', 'tutorialspoints'), ('Social', 'other'), ('Business', 'other')]Output{'tutorialspoint': [('Python', 'tutorialspoints'), ('Django', 'tutorialspoints'), ('React', ... Read More

Python Getting started with psycopg2-PostgreSQL

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:57:48

908 Views

In this tutorial, we are going to learn how to use PostgreSQL with Python. You have to install certain thing before going into the tutorial. Let's install them.Install the PostgreSQL with the guide..Install the Python module psycopg2 for PostgreSQL connection and working. Run the command to install it.pip install psycopg2Now, ... Read More

Python How to copy a nested list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:53:49

476 Views

In this tutorial, we are going to see different ways to copy a nested list in Python. Let's see one by one.First, we will copy the nested list using loops. And it's the most common way.Example Live Demo# initializing a list nested_list = [[1, 2], [3, 4], [5, 6, 7]] # ... Read More

Python Indices of numbers greater than K

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:52:46

554 Views

In this tutorial, we are going to find the indices of the numbers that are greater than the given number K. Let's see the different ways to find them.A most common way to solve the problem is using the loops. Let's see the steps to solve the problem.Initialize the list ... Read More

Python Indexing a sublist

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:51:13

2K+ Views

In this tutorial, we are going to write a program that finds the index of a sublist element from the list. Let's see an example to understand it clearly.Inputnested_list = [[1, 2, 3], [4, 5], [6, 7, 8, 9]]OutputIndex of 7:- 2 Index of 5:- 1 Index of 3:- 0Let's ... Read More

Python Index specific cyclic iteration in list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:49:32

1K+ Views

In this tutorial, we are going to write a program that cyclically iterates a list from the given Let's see the steps to solve the problemInitialize the list and index.Find the length of the list using len.Iterate over the list using the length.Find the index of the element using index ... Read More

Python How to sort a list of strings

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:44:24

745 Views

In this tutorial, we are going to see how to sort a list of strings. We'll sort the given list of strings with sort method and sorted function. And then we'll see how to sort the list of strings based on different criteria like length, value, etc., Let's see how ... Read More

Advertisements