Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Spring Frameworks
    • Core java
    • Python
  • Tech Jobs
  • NM
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Python List

  • Python Python Array Python List
    06 April

    How To Print a Matrix in Python?

    In this article you will learn "How to print a matrix in Python?"

    Read More
  • TypeError: List Indices Must Be Integers Or Slices, Not 'Str'
    Python Python Error Python List Python String
    27 February

    [Solved] TypeError: List Indices Must Be Integers Or Slices, Not ‘Str’?

    Learn how to fix TypeError: List Indices Must Be Integers Or Slices, Not 'Str' in this article.

    Read More
  • Python Python Array Python List python numpy
    18 November

    How to print Array in Python

    In this post, we will see how to print array in Python. As we know that, Python didn’t have an in-built array data type, so we try to use list data type as an array. We can also use the NumPy module for creating NumPy array and apply array operation on it. Now, we will […]

    Read More
  • Python Python List python basic program
    21 December

    Matrix multiplication in Python using user input

    Learn about how to Matrix multiplication in Python using user input.

    Read More
  • Python Python List
    21 April

    Remove first element from list in Python

    In this post, we will see how to remove the first element from a list in python. Using list.pop() We can use list.pop() method to remove the first element from the list. [crayon-6071a2ad816ab305063613/] Output: List Of Fruits are: [‘Orange’, ‘Apple’, ‘Grapes’, ‘Mango’] List Of Fruits after removing first element: [‘Apple’, ‘Grapes’, ‘Mango’] Removed Fruit: Orange […]

    Read More
  • Python Python List
    26 March

    Find average of list in Python

    There are multiple ways to find the average of the list in Python. Using sum() and len() We can use sum() to find sum of list and then divide it with len() to find average of list in Python. Here is the quick example of the same. [crayon-6071a2ad8191f656051388/] Output: Average of listOfIntegers: 3.0 Using reduce(), […]

    Read More
  • Python Python List
    22 December

    Python list of lists

    In this post, we will see how to create a list of lists in python. It is quite easy to create list of lists in Python. You just need to use list’s append method to create list of lists. Here is simple example to create list of lists in Python. [crayon-6071a2ad81acb636041066/] Output: List of Lists: […]

    Read More
  • Python Python List
    21 December

    Combine two lists in Python

    In this tutorial, we will see how to combine twolist in python There are multiple ways to combine list in python. Using + operator You can use + operator to combine list in python. Let’s understand with the help of example. [crayon-6071a2ad81cde288509170/] Output: Combined List: [1, 2, 3, 4, 5, 6, 7, 8] As you […]

    Read More
  • Python Python List
    21 December

    Python count items in the list

    In this tutorial, we will see how to count items inlist in python Count total items in the list You can use len() function to count items in the list. Let’s understand with the help of example. [crayon-6071a2ad81ec3298254770/] Output: List: [1, 2, 3, 4] Length of list1: 4 Count occurence of each element in the […]

    Read More
  • 1
  • 2
  • 3
  • 4
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020 Java2Blog