
die Strafe
punishment / penalty
A negative consequence that someone receives for an offense, a crime, or wrong behavior.
Für zu schnelles Fahren gibt es eine hohe Strafe.
There is a high penalty for driving too fast.
punishment / penalty
Loading your saved state.

punishment / penalty
A negative consequence that someone receives for an offense, a crime, or wrong behavior.
Für zu schnelles Fahren gibt es eine hohe Strafe.
There is a high penalty for driving too fast.

real punishment
Colloquially, a very unpleasant or exhausting task or situation.
Bei der Hitze den ganzen Tag zu arbeiten, ist eine echte Strafe.
Working all day in this heat is real punishment.

as punishment
As a punishment for something. Describes the reason for a negative consequence.
Zur Strafe für das Zuspätkommen musste er nachsitzen.
As punishment for being late, he had to stay after school.
'Die Strafe' (the punishment/penalty) is the noun related to the verb 'strafen' (to punish). It describes the result of the action: when someone punishes, another person receives a punishment.
Wer die Regeln bricht, wird bestraft.
Anyone who breaks the rules will be punished.
The prepositions 'für' (for) and 'zu' (to) are often used with 'Strafe' (punishment/penalty). 'Für' gives the reason for the punishment, while 'zu' describes the type of punishment someone is sentenced to.
Er bekam eine Strafe für das Falschparken.
He received a penalty for illegal parking.
In legal and everyday contexts, there are fixed combinations. You can 'bekommen' (get), 'erhalten' (receive), or 'zahlen' (pay) a 'Strafe' (punishment/penalty). You can 'verbüßen' (serve) a prison sentence.
Er muss eine hohe Geldstrafe zahlen.
He has to pay a large fine.
In colloquial speech, 'Strafe' (punishment) is often used exaggeratedly for a very unpleasant but necessary activity. Here it is not meant literally as punishment.
Diese ganze Bürokratie ist eine echte Strafe.
All this bureaucracy is real punishment.
The expression 'zur Strafe' (as punishment) is a fixed phrase. It introduces the part of the sentence that describes the consequence of an action.
Zur Strafe musste ich mein Zimmer aufräumen.
As punishment, I had to clean up my room.
sanction
A Strafe is typically the specific negative consequence imposed on a person after an offense. A Sanktion is a formal measure for enforcing rules and can also affect states, institutions, or groups. It therefore does not have to be a personal punishment.

Der Verein gab dem Spieler für den Regelverstoß eine Strafe.
The club gave the player a penalty for breaking the rules.
Der Verband verhängte wegen des Regelverstoßes eine Sanktion gegen die gesamte Mannschaft.
The association imposed a sanction on the entire team for breaking the rules.