A

Admin • 833K Points
Coach

Q. What is the output of this code?

Code:
print('a' in 'apple')
  • (A) True
  • (B) False
  • (C) Error
  • (D) None
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The `in` operator checks if substring is present.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.