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.

minimale Laufdatendatei app.pystarten python app.pygewohnheit lerne ein kleines Python Stueck, tippe ein Minimalbeispiel und fuehre es aus
programm

eine geordnete Folge von Anweisungen.

wert und variable

ein Wert ist Dateninhalt. Eine Variable ist sein Name.

funktion

ein benannter kleiner Arbeitsschritt mit Eingabe und Ergebnis.

laufzeit

Python 3 fuehrt Code aus app.py aus.

erster lesbarer Code

Variables

names lists dictionaries strings
score = 40 + 2
print(score)
ausgabe 42

Sprachlinie

Python Stammbaum

sieh woher Python kommt, welche Sprachen nah sind und was danach passt.

wurzeln
ABCCUnix tools
aktuellPythonSkriptsprachen Familie
familieSkriptsprachen Familie
gut fuer

gut fuer praktischer Lernpfad fuer Python von null an

Start bei null

1eine Regel lesen2Ausgabe vorhersagen3aus dem Gedaechtnis tippen4Pruefung ausfuehren5mit einer Aenderung wiederholen

Fragenbank

Erst suchen dann ueben

Waehle eine Phase oder suche in der Fragenbank dieser Sprache und springe zur Aufgabe.

18 Treffer
Q 1AuswahlPhase 1 Definitionen

Python Frage 1

Python Frage 1. Waehle die Aussage, die am besten zu function definition passt.

Q 2AuswahlPhase 1 Definitionen

Python Frage 2

Python Frage 2. Waehle die Aussage, die am besten zu list append passt.

Q 3AuswahlPhase 1 Definitionen

Python Frage 3

Python Frage 3. Waehle die Aussage, die am besten zu dictionary access passt.

Q 4AuswahlPhase 1 Definitionen

Python Frage 4

Python Frage 4. Waehle die Aussage, die am besten zu for loop passt.

Q 5AuswahlPhase 1 Definitionen

Python Frage 5

Python Frage 5. Waehle die Aussage, die am besten zu function definition passt.

Q 6AuswahlPhase 1 Definitionen

Python Frage 6

Python Frage 6. Waehle die Aussage, die am besten zu list append passt.

Q 7AuswahlPhase 1 Definitionen

Python Frage 7

Python Frage 7. Waehle die Aussage, die am besten zu dictionary access passt.

Q 8AuswahlPhase 1 Definitionen

Python Frage 8

Python Frage 8. Waehle die Aussage, die am besten zu for loop passt.

Q 9AuswahlPhase 1 Definitionen

Python Frage 9

Python Frage 9. Waehle die Aussage, die am besten zu function definition passt.

Q 10AuswahlPhase 1 Definitionen

Python Frage 10

Python Frage 10. Waehle die Aussage, die am besten zu list append passt.

Q 11AuswahlPhase 1 Definitionen

Python Frage 11

Python Frage 11. Waehle die Aussage, die am besten zu dictionary access passt.

Q 12AuswahlPhase 1 Definitionen

Python Frage 12

Python Frage 12. Waehle die Aussage, die am besten zu for loop passt.

Q 13AuswahlPhase 1 Definitionen

Python Frage 13

Python Frage 13. Waehle die Aussage, die am besten zu function definition passt.

Q 14AuswahlPhase 1 Definitionen

Python Frage 14

Python Frage 14. Waehle die Aussage, die am besten zu list append passt.

Q 15AuswahlPhase 1 Definitionen

Python Frage 15

Python Frage 15. Waehle die Aussage, die am besten zu dictionary access passt.

Q 16AuswahlPhase 1 Definitionen

Python Frage 16

Python Frage 16. Waehle die Aussage, die am besten zu for loop passt.

Q 17AuswahlPhase 1 Definitionen

Python Frage 17

Python Frage 17. Waehle die Aussage, die am besten zu function definition passt.

Q 18AuswahlPhase 1 Definitionen

Python Frage 18

Python Frage 18. Waehle die Aussage, die am besten zu list append passt.

multiple choice

Python Frage 1

Q 1Auswahlneu

Python Frage 1. Waehle die Aussage, die am besten zu function definition passt.

def add(a, b):
    return a + b

referenz

muster fuer app.py

Python 3python app.py
aus dem gedaechtnislies einen punkt und schreibe ihn ohne blick zurueck
code verfolgennotiere variablenwerte vor dem ausfuehren
selbst tippenweniger kopieren mehr tippen und kleine fehler reparieren

names 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