You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article you will learn how to make a Quiz Game in Python.
In this article I will be talking about how you can easily make a Quiz Game in Python. I will revisit the basic concept of while loop in python and the quiz will be a direct implementation. Pre-requisites
First of all let me recap the concept and syntax of while loop. Loops are generally used when you want to go ahead and run one event multiple times. For loop and while loop are the two most commonly used ones in python. For loop is used generally when you have to repeat the number of events and you as a developer know the number of times you need to run through the loop to get your outcome. This is effective when you can predict the number of time(s) the loop should run. While loop is one such loop which is effective when the developer has no idea about how many times the loop needs to run before he gets the desired value. I will use this sort of looping mechanism while developing a quiz because I never know how many tries the user will require to correctly answer the question. Here is How I will approach the situation:
Pro WPF: Windows Presentation Foundation in .NET 3.0