Total Pageviews

Popular posts

 Tuples support the following build-in functions

Comparison

If elements are of the same type, python performs the comparison and returns the result. If elements are different types, it checks whether they are numbers.

If numbers, perform comparison. If either element is a number, then the other element is returned. Otherwise, types are sorted alphabetically .

If we reached the end of one of the lists, the longer list is "larger." If both list are same it returns 0.

tuple1 = ('a', 'b', 'c', 'd', 'e') tuple2 = ('1','2','3')


No comments

ict note in A/L

3/Technology ict note in A/L/post-list