Question: At a party with $30$ people, $10$ know nobody there and the remaining $20$ people all know each other. Those who know each other greet with a hug, while those who do not greet with a handshake. After everyone has been introduced to everyone, how many handshakes have occurred?
Attempt: Since the $10$ people don't know anyone of the $20$ people who know each other, so each of these $10$ people shakes hand with each of these $20$ people, giving a total of $200$ handshakes. Also, since these $10$ people also shake hands among themselves, we get $\binom{10}{2}=45$ more handshakes. Thus, the total number of handshakes at this party is $245$.
Doubt: Since the number of handshakes is odd, does this not contradict the Handshaking Lemma? If not, what is wrong with my argument.
This is not contradicting the Handshaking lemma. An even number of people (10) will shake hands an odd number of times (29). Another even number of people (20) will shake hands an even number of times (10).
I believe your confusion comes from the requirement in the Handshake lemma that the total sum here ($10\cdot 29+20\cdot 10=490$) is even. It is, and it is double your number (245) because, in your calculation, you did not count handshakes twice, unlike in the Handshake lemma calculation.