answersLogoWhite

0

Yes. If you have a function that squares a number, the output will be the same for both positive and negative input of the number. e.g. 22 = (-2)2

Or if you use a boolean:

If test > 0

return True

test can be equal to 1 or 2 or anything else

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Can a function assign the same output value to two different input values?
Write your answer...
Submit
Still have questions?
magnify glass
imp