H HopQuiz.

Python Basics

17 cards · by HopQuiz · free flashcards with spaced repetition

Study this deck in HopQuiz →

Cards in this deck

  1. Print text to the screen — print()
  2. Symbol for a single-line comment — #
  3. Define a function — def
  4. Loop a set number of times — for loop
  5. Loop while a condition is true — while loop
  6. Test for equality — ==
  7. Data type for whole numbers — int
  8. Data type for text — str (string)
  9. Data type for True/False — bool
  10. Data type for decimals — float
  11. Get the length of a list or string — len()
  12. Convert a value to an integer — int()
  13. Add an item to the end of a list — .append()
  14. A key–value data structure — dictionary (dict)
  15. An immutable ordered collection — tuple
  16. Conditional keyword — if
  17. "Otherwise" keyword — else

Open HopQuiz to study Python Basics with flip, multiple-choice, and type-the-answer modes, spaced repetition, and a focus timer.

Launch HopQuiz →