Write a Python script for finding the maximum and minimum value in a given list.
[1,5,6,8,7]
list = [1,5,6,8,7]
min_val = min(list)
max_val = max(list)

print("Minimum value in list is: %d"%min_val)
print("Maximum value in list is: %d"%max_val)