myStr = "Harry is a good boy"
print(myStr[0:5]) # String slicing first one included second one excluded
print(len(myStr)) # Length of this string
print(myStr[0:75]) # Python will forgive our mistake and return full string
# If we leave first it will take 0 if we leave second it will take length if we leave third it will took 1
print(myStr[0:5:2])
"""
Skipping one Character
If we add 3 it will skip two Characters
If we add out of length it will only return 0 index Character
If we add -number in first two it will start count from reverse
If we add -1 in the third one it will reverse the whole string
If we add -2 in the third one it will reverse the whole string then skip one Character
"""
Newest
Oldest