
def first(word):
    return word[0]
def middle(word):
    return word[1:-1]
def last(word):
    return word[-1]

print(first("fahad"))
print(middle("fahad"))
print(last("fahad"))


#abs function
def grat(x,y):
        x=abs(x-y)
        return x

print(grat(5,6))




