Embrace your mistakes to show that everyone makes mistakes.

Like 

When you make a mistake in class, acknowledge it and try to not appear embarrassed. These situations provide an opportunity to model that you can learn from mistakes and they are a normal part of computer science and the learning process.

Example: "Thanks for catching my mistake!"

See this and related tips as a Tip Sheet: http://csteachingtips.org/tips-for-encouraging-help-seeking

Other Tips By: