8.9k views
3 votes
Is this a function? Input: students first name, Output: students favorite color

User Ben George
by
5.6k points

1 Answer

3 votes
In a function all the inputs must be different. So if everyone has a different first name it is a function. If you have 2 people with the same first name it is NOT a function.
User Marco Massetti
by
6.2k points