- 01Z. 7WHAT broke
The last line is the only one that actually describes the problem. "TypeError: can only concatenate str (not 'int') to str" — i.e. someone tried to add a string and a number. Python refuses.
- 02Z. 5WHERE it happened
The innermost stack frame (lines 4 + 5) points at the exact spot: inside `berechne_summe`, on `return a + b`. The `~~^~~` underneath even points at the operator. One side is a string, the other is an int, the plus is where it dies.
- 03Z. 3HOW you got there
The outer frame (lines 2 + 3) is your call site in main. `berechne_summe(erste, zweite)` was called from line 7 of your script. Meaning: the bug isn't really in `berechne_summe`, it's upstream, wherever `erste` got the wrong value.
Read tracebacks from BOTTOM to TOP. The last line tells you WHAT broke. The innermost frame tells you WHERE. The outermost frame tells you HOW you got there. When you fix it, translate the last line first, then walk up the stack until you find the place where the wrong data was put in.