Answer:
The second condition is a function.
'When I turn the knob left, the door locks every time.'
Step-by-step explanation:
We know function is a special type of relation in which every element of a set ( Here set A(let) includes {H} in first condition and {turning the knob} in second condition) is related to other set (Here set B(let) includes {output U and G} in first condition and{locking of door}in second condition) in such a way that every element of set A have one and only one image in set B.
Here,
In condition 1 one element of set A(pressing key H) have two image(output U and G both)
[which do not satisfies the condition for being a function.]
In condition 2 one element of set A(turning knob left) have only one image(locking of door every time.)
[which satisfies the condition of being function]