Quiz

Python Basics Quiz

  1. 01.

    Which keyword is used to create a function in Python?

  2. 02.

    What does len('hello') return?

  3. 03.

    Which operator is used for exponentiation?

  4. 04.

    What is the correct file extension for Python files?

  5. 05.

    How do you start a comment?

  6. 06.

    Which collection is unordered and unindexed?

  7. 07.

    Which operator checks if a value exists in a list?

  8. 08.

    What is an empty set in Python?

  9. 09.

    What is the output of [1, 2, 3][1:]?

  10. 10.

    What is the output of print(2 ** 3)?