Question 2 - Week 8 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 8
Question 2
00:00
Est. 2 min
Marks:
+3.00
0.00
Consider the following Python code. How many elements will be present in `result`? ``` P = {1, 2, 3, 4} Q = {3, 4, 5, 6} R = {4, 5, 6, 7} S = {2, 4, 6, 8} result = ((P | Q) - R) & S print(result) ```
Integer answer
Easy Difficulty
26 October 2025
Your answer