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:-
- list1=[4,5,6,7,8,9]
- print(list1[1]==list1[2])
compare two values in list in Python
we can compare values of list by there index. Let’s see an example of it.
Example:-
- list1=[4,5,6,7,8,9]
- print(list1[1]==list1[2])
Comments
Post a Comment