Looking up...
The teacher tried to discourage students from cheating.
The teacher wanted to prevent students from cheating by making them feel it was wrong.
to persuade someone not to do something by making them feel it is difficult, dangerous, or not worth the effort
The bad weather discouraged us from going hiking.
The bad weather made us decide not to go hiking because it seemed unpleasant.
Don't let failure discourage you from trying again.
Don't let failure make you feel like you shouldn't try again.
Often used to describe discouraging someone from taking action or pursuing a goal.
'Discourage' is often used with 'from' or 'from doing' to specify what action is being discouraged.
From Middle French 'descourager', from 'des-' (dis-) + 'courage' (courage).
Often followed by 'from' or 'from doing' when referring to specific actions.