πŸ“Š Python
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]
πŸ’¬ Discuss
βœ… Correct Answer: (B) str1[5:10]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
173
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate