Hi, thanks for the video, how would u make the quiz to show more than one question in random order? I am preparing a random multiple-choice quiz with 15 questions.
Probably create a dictionary and import the random library. There is a saying in coding. DRY - DON'T REPEAT YOURSELF. There are far better ways to make a quiz
#Ask Name player_name = input("Hi! What is your name?") #Age Restriction age = 18 player_age = int(input("How old are you?")) if player_age 18: print("Welcome " + player_name + " to the Simple Quiz Game!")
I needed this video a lot, Because I was running my whole program in errors
great work
Amazing step wise guide. Excellent work.
Thanks, this video helped me alot with my digital tech assessment.
Thank you very much, I try this source code and woooo it can run
is it possible to export this a website
Thank you very much that was very interesting!
Thank you soo much.. its really helpfull
Thank you mam❤
Excellent work!
Thank you.
Hi, thanks for the video, how would u make the quiz to show more than one question in random order? I am preparing a random multiple-choice quiz with 15 questions.
Probably create a dictionary and import the random library. There is a saying in coding. DRY - DON'T REPEAT YOURSELF.
There are far better ways to make a quiz
What if we want to have like age boundaries?? Could you please help me with thz
What do you mean by age boundries? Can you explain a bit more?
#Ask Name
player_name = input("Hi! What is your name?")
#Age Restriction
age = 18
player_age = int(input("How old are you?"))
if player_age 18:
print("Welcome " + player_name + " to the Simple Quiz Game!")
Mam ye kis par work kiya hai apne notepad par
I used the Pyhton IDLE. You can watch my video to learn how to download it. th-cam.com/video/QIkjCnIpDSw/w-d-xo.html
Thank you ☺️
Thanks a lot
This help me alot but how can I write the code That will give the score like ("you got 3/5") instead of write 3 alone. Thank you
You can use this line of code instead of the one shown in the video:
print("Well done! Your score was", score, "/ 3")
Thanks
Print pr invalid syntax aa rha h
Did you copy the code correctly? Try copy pasting from the Github link posted in the description of the video.
??
How do I add more chances?
When you declare chance, set it equal to the number of chances you want (i.e. chance= 3). However, you might have tweak the logic a bit.