str = "welcome to the world of python"
print("str[2:10] = ", str[2:10])
print("str[2:10:1] = ", str[2:10:1])
print("str[2:10:2] = ", str[2:10:2])
print("str[2:13:4] = ", str[2:13:4])

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: