R

Rati Dubey • 8.55K Points
Tutor III

Q. What is the output of `print('A' in 'Apple')`?

  • (A) True
  • (B) False
  • (C) Error
  • (D) None
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Python

Explanation by: Rati Dubey
The `in` operator checks for substring membership. Since 'A' is in 'Apple', it returns True.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics