## Python program to remove characters from odd or even index of a string

Python 3 program to remove characters from odd or even index from a string : In this example, we will write one program in Python 3 to remove all characters positioned on Even or Odd index. Python string is immutable, i.e. we can’t modify one string directly. e.g. if you Read more…

## Python program to find the sum of all values of a dictionary

Python program to find the sum of all the values of a dictionary : In this tutorial, we will learn how to find the sum of all the values of a dictionary in python. Python dictionary is an unordered collection. It is used to store key-value pairs of data. The Read more…

## Python program to sort values of one list using second list

Python program to sort one list by using values of a different list : In this example program, we will learn how to sort elements of one list by using elements of a different list. It looks confusing, don’t you think? How can we sort one list using a different Read more…

## Python program to find the largest even and odd numbers in a list

Write a Python Program to print the largest Even and Odd numbers in a list : In this tutorial, we will write one python 3 program to find out the largest odd and even number in a list. The user will enter all the numbers to store in the list. Read more…

## Python index method to get the index of an item in a list

Python index method to get the index of an item in a list : The ‘index’ method is used to find the index of the first occurrence of an item in a list. The syntax of ‘index’ method is as below : s.index(x[, i[, j]]) It will find the index Read more…

## Python 3 program to find union of two lists using set

Python 3 program to find union of two lists using set : In this tutorial, we will learn how to find the union of two lists using set in Python 3. To find the union of two lists, we don’t have any built-in methods. We are going to use ‘set‘ Read more…

## Python program to print a triangle using star

Python 3 program to print a Triangle using star : In this tutorial, we will learn how to print a triangle using star (*). You can change it to any other characters if you want. Printing a symbol works the same for any programming language. You can use the same Read more…

## Zip function in python and how to use it

What is zip() function in python and how to use it : What is zip() : The syntax of zip() function is ‘zip(*iterables)’ that means it will take multiple iterables as inputs. It makes an iterator aggregating elements from each of the iterable. What it returns : zip() returns an Read more…

## Python 3 program to print invert right angle triangle

Introduction : In this python programming tutorial, we will learn how to print an invert right angle triangle programmatically. A right angle triangle has one 90 degrees angle or right angle. For an inverted right angle triangle, this right angle will be at the top left corner. The other angles Read more…