name ="pRaNEel"

print(name[3])
print(name[2:6])
print(name[4:7:2])
print(name[0].upper() + name[1:7].lower())
print(name[0:-1].upper() + name[1:7:].lower())
print(name[::-1])

food = "sPagATti"

print(food[7:2:-1])
print(food[:])
print(food[3:8])
print(food[:].lower())
print(food[::-1].upper())
print(food[7:5:-1])