8. Given a tuple pairs = ((2, 5), (4, 2), (9, 8), (12,10)), count the number of pairs (a, b) such that both a and b are even. sa 11 cs chapter 12 / PythonCSIP CS IP 8. Given a tuple pairs = ((2, 5), (4, 2), (9, 8), (12,10)), count the number of pairs (a, b) such that both a and b are even. Read More »
9. Write a program that inputs two tuples seq_a and seq_b and prints True if every element in seq_a is also an element of seq_b, else prints False. sa 11 cs chapter 12 / PythonCSIP CS IP 9. Write a program that inputs two tuples seq_a and seq_b and prints True if every element in seq_a is also an element of seq_b, else prints False. Read More »