str="Hello world"
print(str[1:3])
print(str[6: ])
print(str[ :6])
print(str[0:6:2]) # in the range from 0 to 6 jump by 2
print(str[-2])
print(str[1:-1]) #read from the backwards

a="Z"
b="john"
print(a>b)

if len(a)> len (b):
    print("a>b")
else:
    print("b>a")

b=b.capitalize()


print(b)

