Evaluating search and replace calls on mississippi

The variable s holds the string "mississippi". Fill in the value each expression evaluates to, exactly as Python would display it, using True or False for yes-or-no results and no quotation marks.

ExpressionValue
s.find("ss")
s.find("ss", 3)
s.find("Miss")
s.count("s")
s.count("ss")
s.endswith("pi")
len(s.replace("ss", "s"))

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More String Slicing and Methods Questions: