eine geordnete Folge von Anweisungen.
Arbeitsbereich
Python
praktischer Lernpfad fuer Python von null an
erst definieren
was Python bedeutet
Python schreibt genaue Anweisungen. Hier lernst du es als praktischer Lernpfad fuer Python von null an. Starte mit einem Modell: Eingabe geht durch Schritte und wird Ausgabe.
app.pystarten python app.pygewohnheit lerne ein kleines Python Stueck, tippe ein Minimalbeispiel und fuehre es ausein Wert ist Dateninhalt. Eine Variable ist sein Name.
ein benannter kleiner Arbeitsschritt mit Eingabe und Ergebnis.
Python 3 fuehrt Code aus app.py aus.
erster lesbarer Code
Variables
names lists dictionaries stringsscore = 40 + 2 print(score)
ausgabe 42Sprachlinie
Python Stammbaum
sieh woher Python kommt, welche Sprachen nah sind und was danach passt.
Start bei null
Fragenbank
Erst suchen dann ueben
Waehle eine Phase oder suche in der Fragenbank dieser Sprache und springe zur Aufgabe.
Python Frage 1
Python Frage 1. Waehle die Aussage, die am besten zu function definition passt.
Python Frage 2
Python Frage 2. Waehle die Aussage, die am besten zu list append passt.
Python Frage 3
Python Frage 3. Waehle die Aussage, die am besten zu dictionary access passt.
Python Frage 4
Python Frage 4. Waehle die Aussage, die am besten zu for loop passt.
Python Frage 5
Python Frage 5. Waehle die Aussage, die am besten zu function definition passt.
Python Frage 6
Python Frage 6. Waehle die Aussage, die am besten zu list append passt.
Python Frage 7
Python Frage 7. Waehle die Aussage, die am besten zu dictionary access passt.
Python Frage 8
Python Frage 8. Waehle die Aussage, die am besten zu for loop passt.
Python Frage 9
Python Frage 9. Waehle die Aussage, die am besten zu function definition passt.
Python Frage 10
Python Frage 10. Waehle die Aussage, die am besten zu list append passt.
Python Frage 11
Python Frage 11. Waehle die Aussage, die am besten zu dictionary access passt.
Python Frage 12
Python Frage 12. Waehle die Aussage, die am besten zu for loop passt.
Python Frage 13
Python Frage 13. Waehle die Aussage, die am besten zu function definition passt.
Python Frage 14
Python Frage 14. Waehle die Aussage, die am besten zu list append passt.
Python Frage 15
Python Frage 15. Waehle die Aussage, die am besten zu dictionary access passt.
Python Frage 16
Python Frage 16. Waehle die Aussage, die am besten zu for loop passt.
Python Frage 17
Python Frage 17. Waehle die Aussage, die am besten zu function definition passt.
Python Frage 18
Python Frage 18. Waehle die Aussage, die am besten zu list append passt.
multiple choice
Python Frage 1
Python Frage 1. Waehle die Aussage, die am besten zu function definition passt.
def add(a, b):
return a + breferenz
muster fuer app.py
python app.pynames lists dictionaries strings
Variables
score = 40 + 2 print(score)
- Indentation matters
- Use descriptive names
- Print intermediate values
def parameters return
funktionen
def add(a, b):
return a + b
print(add(2, 3))- Use def to name work
- Indent the body
- Return the result
for ranges lists dictionaries
Loops
for item in ["a", "b"]:
print(item)- Loop over values directly
- Use enumerate when index matters
- Keep loop bodies short