whatsthecodeforthat.com

What's the code for Index of Substring in python?

idx = s.index(substring)