compare two values in list in Python

 compare two values in list in Python


we can compare values of list by there index. Let’s see an example of it.

Example:-

  1. list1=[4,5,6,7,8,9] 
  2. print(list1[1]==list1[2])

Comments

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27