Python Basic Part 2 Quiz

Python Basic Part 2 Quiz takes learners a step further into the world of python, where small lines of code can perform surprisingly powerful tasks. A fun fact is that Guido van Rossum designed functions to make programming reusable; inspired by the way mathematicians use formulas repeatedly without rewriting them each time. Loops, on the other hand, allow actions to be repeated effortlessly, almost like giving instructions to a friend and having them follow the same steps automatically. This approach makes code both shorter and easier to manage. The quiz provides a playful way to explore how loops and functions work together, showing how Python’s clever design simplifies programming for beginners and makes learning satisfying.

Report a question

You cannot submit an empty report. Please add some details.
Launch Python Basic Part 2 Quiz

Python Basic Part 2

In Python what will print(5 * 2) show?

In Python what is the output of print(10/2)?

Which symbol is used for exponentiation (power) in Python?

In Python which of the following is a valid variable name?

In Python what does the input() function do?

In Python what is the result of len("Python")?

In Python what keyword is used to make decisions in Python?

In Python which statement repeats a block of code multiple times?

In Python what will for i in range(3): print(i) display?

In Python what keyword is used to define a function?

Your score is

The average score is 0%

0%

Sample Questions from This Quiz

  1. In Python what will for i in range(3): print(i) display?
  2. In Python what will print(5 * 2) show?
  3. In Python what is the output of print(10/2)?
  4. Which symbol is used for exponentiation (power) in Python?
  5. In Python which of the following is a valid variable name?

Try the full quiz and see how many of these you can answer!

Beyond Python Basic Part 2 Quiz

Launch Python Basic Part 3 Quiz

Python Basic Part 3

Lists and Booleans are plotting something sneaky again!

Launch Python Basic Part 4 Quiz

Python Basic Part 4

Strings that shout, loops that skip, and code that giggles!

Launch Python Basic Part 1 Quiz

Python Basic Part 1

Code like a pro, or at least like a curious beginner!

Moon Phases Part 2 Quiz

Moon Phases Part 2

Test your skills and shine bright like a full moon tonight!

Eclipse Part 1 Quiz

Eclipse Part 1

Play and orbit fun solar facts around yourself for enjoyment!

Eclipse Part 2 Quiz

Eclipse Part 2

Test your knowledge on eclipses and glow like the Moon!

Convex Lens Part 1 Quiz

Convex Lens Part 1

A quiz that makes optics less blurry and more fun!

Convex Lens Part 2 Quiz

Convex Lens Part 2

Light bends but this quiz keeps things crystal clear!