Python: Data Types, Lists & Functions – quiz with 15 questions
Read and write Python with confidence: integer and floating-point division, slicing, dicts, list comprehensions, functions with default values, error handling, and virtual environments.
Questions
15
Level
Beginner
Area
Programming & data · Programming languages
Modules
Datentypen & Syntax
Listen, Dicts & Schleifen
Funktionen & Fehler
Sample question
Welchen Wert liefert der Ausdruck 7 // 2 in Python 3?
3
1
4
3.5
Correct: 3. // ist die Ganzzahldivision und rundet nach unten ab. 7 / 2 ergibt 3.5, und 7 % 2 liefert den Rest 1.
More questions from the quiz
Welchen Datentyp hat das Ergebnis von 4 / 2 in Python 3?
Wie markiert Python zusammengehörige Codeblöcke, etwa den Körper einer if-Anweisung?
Ein Kassensystem rechnet in Python 0.1 + 0.2. Was kommt heraus?
Welcher Wert gilt in Python in einer if-Bedingung als falsch (falsy)?
Was liefert zahlen[-1] bei zahlen = [4, 8, 15, 16]?
The questions and explanations are in German – checked by experts, not machine-translated.
After every answer, Quizbot explains why it is right or wrong. Open questions come first, and progress is counted per topic. The quiz is free of charge; no account is needed.