In our bio class our teacher told us that entropy was the amount of heat lost by a system. But I had learned before that entropy was like chaos / disorder in a closed system. Which definition Is right, or does entropy have different definitions in biology and physics?
The definition of entropy can be found on Wikipedia. It's the integral of the reversible heat flow divided by the temperature at which the flow occurs. This has, at face value, nothing to do with order and disorder because there is no obvious way to even define structure in thermodynamics.
One has to understand the link between thermodynamics and statistical mechanics to get a sense of where the second meaning of entropy comes into play. This link is given by the unproven and most likely unprovable ergodic hypothesis. While the ergodic hypothesis is quite plausible and physically very well realized for many systems, one can construct trivial cases for which it does not hold (especially for systems that are interaction free like the ideal gas), which should give us some pause with regards to the mathematical problem with ergodicity.
If we accept the ergodic hypothesis as "essentially correct" (in a physical, NOT in a strict mathematical sense), then we can recover thermodynamic entropy as a measure of order/disorder, which is definable in terms of counting microstates. However, while in physics entropy is extremely well defined in both thermodynamic and statistical mechanics terms, many characterizations in the layman literature seem questionable, at best, and there is quite a bit of overreach about the "meaning" and function of entropy IMHO.
Part of the problem, as far as a I can tell, is that much of the discussion about the dynamics of physical (and biological!) systems is still being carried out at the level of the 19th century, when the world seemed divided into (and fully explainable by!) either mechanics or thermodynamics. Physicists knew already at the end of the 19th century that this is not true and mathematically the "trouble" with dynamic systems was already known to Newton who failed to solve the three body problem. What Newton couldn't know and what is not at all captured by terms like entropy is that there is a world of utterly complex dynamics between integrable mechanical systems and the thermodynamic limit. We haven't even begun to scratch the mathematical surface of these things. Thus my advice to you: when someone talks about entropy and it's not a chemical process engineer talking about the thermodynamic efficiency of the industrial chemical process that he is responsible for... RUN!