String



mystr = "hello this is my world"

print(mystr[0:12])

print(mystr[:3])

# first number is starting point and
# second number is ending point and third numbers
# is difference point

print(mystr[::2])

Comments