20% off with code ERSTIS26
CATEGORY

Python

Tutorials, exam tips, IT news. Written by people who use this stuff every day at work.

self in Python verstehen: Wozu dient es?
Featured
Python5 min read

self in Python verstehen: Wozu dient es?

Stell dir vor, du schreibst deine erste Python-Klasse für ein kleines Projekt im Betrieb. Du willst ein Auto modellieren mit Eigenschaften wie Marke und Farbe. Du siehst überall `self` stehen - in der `__init__`-Methode, bei jeder Methode, die du schreibst. Und du fragst dich: Wozu Python self eigentlich? Genau das klären wir hier. Egal, ob du als Fachinformatiker deine erste Umschulung absolvierst, im Informatikstudium Objektorientierung lernst oder als Berufseinsteiger in ein Python-Projekt...

First chat · free · no commitment

Ready to finally understand your code?

30 min, no commitment, in the browser. You decide afterwards, not before. No subscription, no minimum term.