Write code to verify whether a string of parentheses is valid.
The string contains only ( and ). Return True when every opening parenthesis is closed in the correct order, and False otherwise.
Function signature: is_valid_parentheses(s) Input is a string, and output is a Boolean.
def is_valid_parentheses(s):