Microsoft interview question

Write a python code to check if a substring is present in a string.