Computer Science · Python Sequences
Given a Python list containing string elements, evaluate the following assertions: Assertion (A): The membership expression 'val in my_list' evaluates to True. Reason (R): 'val' is a substring of one of the string elements contained within my_list.
- 1A is false but R is true.
- 2A is true but R is false.✓
- 3Both A and R are true but R is NOT the correct explanation of A.
- 4Both A and R are true and R is the correct explanation of A.
Correct answer
A is true but R is false.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Sequences?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Sequences