Creating a Quiz using Python

Julie Ann Delda
2 min readSep 25, 2020

--

Hi!

Are you looking for a code in creating a quiz using Python? Congrats! You are on the right page. 😄

Today, I am going to share with you a quiz I created using Python. Take note that I will be using two notebooks: Colaboratory and Spyder.

Let’s get started!

This is Colab notebook.

Let me show you the result of my quiz.

This is the output after running the program.

Now, I’ll be sharing the code below.

This is the code used in creating a quiz.

Amazing, right?

Try it on your notebook, too! 😎

Now, let us convert what we created using SPYDER.

Same code with Colab, but now using Spyder.
This is the Editor window. This is where you code.

The Editor allows you to write sequences of commands, which together make up a program.

Same output quiz with Colab.
Cool, right? Try this quiz!

On the other hand, the Console allows you to execute commands and enter, interact with and visualize data inside. Python can be used for more than just creating complicated machine algorithms. Indeed, the simpler, the better.

You can also check my Github here to see my assignments in FTW Data Science Workshop. See you, next time! 😉

--

--