Creating a Quiz using Python

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!

Image for post
Image for post
This is Colab notebook.

Let me show you the result of my quiz.

Image for post
Image for post
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.

Image for post
Image for post
Same code with Colab, but now using Spyder.
Image for post
Image for post
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.

Image for post
Image for post
Same output quiz with Colab.
Image for post
Image for post
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! 😉

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store