text = "hello"
print(text[0:3])
print(text[1:4])
print(text[0:])output
hel
ell
hellotext[start idx:end idx] → end idx not includedtext = "hello"
print(text[0:3])
print(text[1:4])
print(text[0:])output
hel
ell
hellotext[start idx:end idx] → end idx not included