R

Ram Sharma • 193.88K Points
Coach

Q. Which of the following would give "Harry" as output?
Given str1="Mary,Harry,John,Sam"

  • (A) str1[4:9]
  • (B) str1[5:10]
  • (C) str1[4:10]
  • (D) str1[5:9]
  • Correct Answer - Option(B)
  • Views: 147
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics