Exercises

Fundamentals of Python Programming

Build confidence in Python programming fundamentals with this beginner-friendly quiz. Test your understanding of arithmetic operator precedence, the print() and input() functions, variables, single-line comments, and for-loop syntax. You will also review core data types and operations, including creating and appending to lists, identifying tuples, finding string length with len(), and understanding string concatenation. Whether you are new to coding or revising essential Python concepts, this quiz offers a quick way to check your knowledge of the language's basic syntax and features.

Answer the questions below and check the explanation for each answer.

0/11 answered

  1. 1

    What is the result of 3 + 4 * 2 in Python?

  2. 2

    Which function is used to display output in Python?

  3. 3

    What does the 'input()' function do in Python?

  4. 4

    How do you create a list in Python?

  5. 5

    What will the expression len('Python') return?

  6. 6

    How do you start a for loop in Python?

  7. 7

    Which of the following is a correct way to declare a variable in Python?

  8. 8

    What symbol is used to comment a single line in Python?

  9. 9

    How do you append an item to a list in Python?

  10. 10

    What will the expression '5' + '5' output in Python?

  11. 11

    Which of the following is a tuple in Python?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate