How to check if a tuple is a subset of another in Python
To check if a tuple is a subset of another in python we’ll have to make 2 tuples, namely tup1 and tup2 which will later check if all the elements of tup2 are present in tup1. The code for the following program is : tup1 = () tup2 = () a=int(input(“how many numbers in tuple1 …
How to check if a tuple is a subset of another in Python Read More »