id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

substr


Given two strings, decide if the second one is a substring of the first one without using indexOf() or find() and return a boolean value


substr('Somebody help my', 'body') → True
substr('Please no', 'noo') → False
substr('Intelligent', 'Matthew or Cameron') → False

...Save, Compile, Run (ctrl-enter)

def substr(a, b):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 300 Post-solution available

Copyright Nick Parlante 2017 - privacy