# str_h = "hello world"

# print(str_h)

# len('hello') 

mystring = 'hello world'
print(mystring[:3])


mystring = 'hello world'
print(mystring[0:4])

mystring = 'abcdef'
print(mystring[1:4])


mystring = 'abcdefg'
print(mystring[1:])

mystring = 'abcdefg'
print(mystring[::])

mystring = 'abcdefg'
print(mystring[::3])

mystring = 'abcdefg'
print(mystring[::-1])

k = 'hello'
print(k[1])

k = 'hello'
print(k[::-1])

k = 'hello'
print(k[-1])
print(k[4])
