In python, I am trying to check if a given list of values is currently sorted in increasing order and if there are adjacent duplicates in the list. If there are, the code should return True. I am not sure why this code does not work. Any ideas? Thanks in advance!! 

```
def main():
    values =  [1, 4, 9, 16, 25]
    print("Return true if list is currently sorted in increasing order: ", increasingorder(values))
    print("Return true if list contains two adjacent duplicate elements: ",     twoadjacentduplicates(values))

def increasingorder(values):
    hlist = values
    a = hlist.sort()
    if a == hlist:
        return True
    else:
        return False 

def twoadjacentduplicates(values):
    ilist = values
    true = 0
    for i in range(1, len(ilist)-1):
      if  ilist[i] == ilist[i - 1] or ilist[i] == ilist[i + 1] :
          true = true + 1
    if true == 0:
        return False
    if true > 0:
        return True
main()

```