Python quiz game 💯

  Рет қаралды 134,822

Bro Code

Bro Code

Күн бұрын

Пікірлер
@archerx91x60
@archerx91x60 4 жыл бұрын
Thank you so much. I'm taking a python class right now in school and I'm pretty sure you're videos will teach me more then my professor will. I hope I can master this
@BroCodez
@BroCodez 3 жыл бұрын
thanks for watching Archer!
@luigi4204
@luigi4204 2 жыл бұрын
Do you master this now?
@f-s_interpreter
@f-s_interpreter 2 жыл бұрын
@@BroCodez questions_num = 0 for key in questions: print(key) print("-----------------------------------") for value in options[questions_num]: print(value) questions_num += 1 I thinks it is easier Thank u!!!!!!!
@67k
@67k 2 жыл бұрын
hows it coming along?
@meekaaresaba1721
@meekaaresaba1721 7 ай бұрын
@@f-s_interpreter
@davidmcdade9951
@davidmcdade9951 4 жыл бұрын
I love your clear, concise explanation and code. As usual, another great video!
@BroCodez
@BroCodez 3 жыл бұрын
Thanks for watching David!
@Uhmatmcr
@Uhmatmcr Жыл бұрын
honestly thank you the other video about quizzes didn't work but yours did
@MuhammadArshad-vv4xx
@MuhammadArshad-vv4xx 5 ай бұрын
Sir, I love this way to teach in detail,each and every aspect of quiz game❤❤❤❤❤
@davidcalebpaterson7101
@davidcalebpaterson7101 3 жыл бұрын
Finally understood this code, even though I think there are more efficient or easier ways to write this project since not all the connections between elements were clear. but it is nice to see this so I can challenge myself and find another way. Good stuff thanks Bro. 👌
@BroCodez
@BroCodez 3 жыл бұрын
thanks for the input. I was trying to record something understandable to most people, rather than something efficient but cryptic.
@francismannion7075
@francismannion7075 7 ай бұрын
Thank you that was clear and easy to understand.
@miles_walker
@miles_walker 2 жыл бұрын
I'm new to Python, but have done basic programming in MATLAB. This was very helpful for understanding the syntax of Python covering quite a few basic concepts - thank you!
@JonBraydenCodes
@JonBraydenCodes 2 жыл бұрын
This video is really amazing and help me a lot in exploring the python.
@CarlJohnson-dr3tv
@CarlJohnson-dr3tv 4 жыл бұрын
Commenting to beat the youtube algorithm, I wanna thank you, i paid $30 for a shitty course and couldn understand shit, you made everything clear thank you
@BroCodez
@BroCodez 3 жыл бұрын
thanks Carl!
@lastwaveundergroundsaviour7037
@lastwaveundergroundsaviour7037 2 жыл бұрын
Thanks, ive gone from your Java tutorials now to Python. Loving it
@hannsalmasan5459
@hannsalmasan5459 3 жыл бұрын
Man you just save my time from thinking what system i should create and I'm so thankfull that you make this video, great job and keep creating.
@StacieButler-h1n
@StacieButler-h1n 9 ай бұрын
I love your quiz game video for Java. Do you have one for Python that uses Tkinter?
@henal05
@henal05 2 жыл бұрын
Brother you are a saviour. We had to make a project on pandas and everyone were doing the same old managing project but me and my friend came across your quiz. We took the main program from your video and then modified it and made it a nice descriptive quiz with different sections and emojis and also made graphs. Tomorrow are my practicals and I am again seeing your video so that I can explain it better to the examiner Again thank you so so much🙆
@grigoldvali4124
@grigoldvali4124 2 жыл бұрын
Thanks for this game!!!!!
@simontheuns7280
@simontheuns7280 2 жыл бұрын
Thank you for the quiz, i really love your content and keep going!
@fazeasta6481
@fazeasta6481 3 жыл бұрын
Great video I’m doing my Create task right now This is my inspiration for my game.
@salatatoe6812
@salatatoe6812 3 жыл бұрын
Hooooooooooooly crap this video is just perfect for my programming task in uni. Thanks bro you saved my evening! What an awesome video! Gonna sub right now.
@RhombusDaily
@RhombusDaily 2 жыл бұрын
Thanks! Helped a lot to understand a lot of things!
@Verzach3
@Verzach3 4 жыл бұрын
U are the best!
@alirezafarzin3126
@alirezafarzin3126 2 жыл бұрын
Thank you soooooooooo much Bro. I used to hate studying but with your course I fell in love with Python.I wish the Best for you and thanks thanks thanks again!!and again:)
@ajetsfan
@ajetsfan 2 жыл бұрын
BRO...this is awesome, thank you for being such a bro
@airlanggak5391
@airlanggak5391 3 жыл бұрын
thanks so much for sharing!
@charlespermezel7630
@charlespermezel7630 3 жыл бұрын
I first of all this is a really good video you re explaining really well so thank you for that, i just wanted to ask you if you can do a video about making the same game but using random so that the question orders changes each time you play ? (sorry for bad english im french)
@GaBeKool
@GaBeKool Жыл бұрын
Add „import random“ at the top of the document. Type questions = [„question 1“, question 2“ …..] and let the computer choose your questions by typing „question = random.choice(questions)“. You can then display „question“.
@GeForce1080
@GeForce1080 Жыл бұрын
@@GaBeKool thx bro
@piotrkopcewicz5227
@piotrkopcewicz5227 2 жыл бұрын
great tutorial !! that was tough. Thanks
@stickydamper
@stickydamper 4 жыл бұрын
Tkank you :-)
@yiorgoskatopodis
@yiorgoskatopodis 2 жыл бұрын
Bro, that one was superb!!! Congrats!!!
@yourroboticfriendexe4907
@yourroboticfriendexe4907 3 жыл бұрын
YOU ARE A LIFE SAVER THANK YOU SO MUCH
@libaaxalee
@libaaxalee 3 жыл бұрын
Thank you very much, the helped reduce my headache as I kept making mistake.
@melaniebenitez8851
@melaniebenitez8851 3 жыл бұрын
Thank you so much this helped lots!
@rishabh6485
@rishabh6485 3 жыл бұрын
correct_guesses += check_answer(questions.get(key), guess) In the above line of code... I am not able to understand what is the value of key...(at the video time 8:55) Please help me out...
@vamshireddy6500
@vamshireddy6500 3 жыл бұрын
questions.get(key) returns the ans in the dictionary - from the dictionary questions the "Who created Python?: ": "A" (who created python is the key and A is value you can call it what ever you want but the basic convention)that's the first question and who created python is the key .get is a dictionary method which returns the value for a specific key correct_guesses is a variable which is equal to 0 at the beginning when the user answers a question we need to check if its correct or wrong so every time the user answers a question we increment the value of correct_guesses. so correct_guesses = correct guesses + check_answer(questions.get(key), guess) which basically means correct guesses = 0+A, A) that's all bro check_answer is a function which is called after correct_guesses += check_answer(questions.get(key), guess) this line is executed. Hope this helps.
@rishabh6485
@rishabh6485 3 жыл бұрын
Thanks a lot☺️ This was very helpful!
@wasimgamer1364
@wasimgamer1364 3 жыл бұрын
@@vamshireddy6500 you are true legend!! i was so confused because i didn't know that this .get thing would get the Value and not the key. I was like "what do he want from the question!?" one question pls: if .get gets the value from the dictionary then how to get the key from the dictionary?
@spkmusic3826
@spkmusic3826 Жыл бұрын
Can you make a video about making a quiz using easy gui
@Verzach3
@Verzach3 4 жыл бұрын
Keep the videos just like this, you explain very good
@aliyaperetch8016
@aliyaperetch8016 6 ай бұрын
Great game!
@knowleg547
@knowleg547 Жыл бұрын
Op🎉
@acapella9436
@acapella9436 2 жыл бұрын
Nice video. I want there to be a countdown when the question comes up. how can I do it?
@Eli-u6i3n
@Eli-u6i3n 2 ай бұрын
ty!
@kutay6863
@kutay6863 10 ай бұрын
I dont understand the display score part of the code when we wrote for i in questions shouldn't it be for values in questions ---> print(questions.get(values)) bc otherwise why it didnt give the questions
@ayushvishwakarma-up9lq
@ayushvishwakarma-up9lq 6 ай бұрын
nice tutorial
@HanD_1964
@HanD_1964 2 жыл бұрын
Very nice code. The only thing is that Guido van Rossum created Python in 1989, not 1991. So the answer is A, not B. As a Dutch guy, i need to know... Keep up the good work!
@BroCodez
@BroCodez 2 жыл бұрын
*released in 1991
@william0712
@william0712 3 жыл бұрын
thanks bro for this video, so I have a question: Python quiz games is machine learning project, right?
@EPS08
@EPS08 2 жыл бұрын
thanks bro it helped me alot!
@mihiradarsh3286
@mihiradarsh3286 3 жыл бұрын
Thankyou for this
@cattxx
@cattxx 3 жыл бұрын
Hey guys! For this one my questions dictionary keeps shuffling while the answers stay the same - so it will print the third question first paired with the first set of answers for example. There was once I ran it and it did it right but I ran the exact same code again and it started shuffling the questions again. Any thoughts on potentially why?
@cattxx
@cattxx 3 жыл бұрын
I think the answers are all printing out in the order but the dictionary not - I went back to the dictionary module and it said it won't come out in any specific order; I can't find the line of code that allows it to print the dictionary keys in the same listed order, can anyone help?
@sosovanrotha2502
@sosovanrotha2502 2 жыл бұрын
@@cattxx As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.
@catherinetung
@catherinetung 2 жыл бұрын
@@sosovanrotha2502 omg was that the issue?? I can't believe I peeled my eyes on the screen so many times trying to find the problem. Thanks for this, that makes a lot of sense.
@sosovanrotha2502
@sosovanrotha2502 2 жыл бұрын
@@catherinetung haha are you still learning huh?
@catherinetung
@catherinetung 2 жыл бұрын
@@sosovanrotha2502 ahahha of course; I detoured with JS instead for a long time..haven't been able to switch too easily without feeling confused just yet
@laliteshpandey344
@laliteshpandey344 3 жыл бұрын
Wow thanks man! use while loop for play again and import main file.
@anonymoustroll8062
@anonymoustroll8062 3 жыл бұрын
How you come up with this idea? like creating a program like guessing game. I always do is solve programming problem.. can you please tell me how you come up with some ideas thank you.
@emadeldeennassar543
@emadeldeennassar543 3 жыл бұрын
Thanks a lot
@kahitano496
@kahitano496 2 жыл бұрын
Thank you Sir, you save me.
@died_tried
@died_tried 2 жыл бұрын
ure cool
@Adamapol
@Adamapol 2 жыл бұрын
nc😀😀😀
@spartanranger
@spartanranger 3 жыл бұрын
Thanks for the video Bro
@Whisperingwillowindieband
@Whisperingwillowindieband 3 жыл бұрын
Thanks it helped a lot
3 жыл бұрын
I did it a little different. I created a list of multiple false answers, I shuffle the list and choose the first four to combine with the real answer. Then, I shuffle the options so that the correct answer gets a different letter, and the game gets trickier
@joshuaolebogeng9670
@joshuaolebogeng9670 2 жыл бұрын
please BRO MAKE THIS QUIZ GUI Tkinter py
@arifraser-haste9882
@arifraser-haste9882 2 жыл бұрын
how would you validate user input for the answers, I've been trying to do this and going round in circles
@Softme.m
@Softme.m 2 жыл бұрын
best coding channel keep going🌺🍡
@preschoolPT
@preschoolPT 2 жыл бұрын
awesome
@kemann3815
@kemann3815 2 жыл бұрын
Excellent
@Ramadan_series12
@Ramadan_series12 2 жыл бұрын
@Angry_Cat00
@Angry_Cat00 2 жыл бұрын
Very clear explain , keed doing . But I've question why you dont make its directly when use Upper Method instead initial and repeat response = input("Do you want to play again? (Yes or No): ").upper()
@SlipperyNutella
@SlipperyNutella 2 жыл бұрын
Just preference or he might have done it so that it's easier to present his code for the video. Both works fine
@irfanquader6417
@irfanquader6417 2 жыл бұрын
bro you are awesome
@Deemero
@Deemero 2 жыл бұрын
mantap
@dimiouthemud
@dimiouthemud 3 жыл бұрын
In the questions list, can I have more than one answer be correct? If so, then how?
@art-sauce
@art-sauce 4 жыл бұрын
Glad I subscribed
@BroCodez
@BroCodez 3 жыл бұрын
thanks Nashaat!
@art-sauce
@art-sauce 3 жыл бұрын
Keep up the good work!
@54M1WUL
@54M1WUL 4 жыл бұрын
cant wait for a 12 hour python course from u
@BroCodez
@BroCodez 4 жыл бұрын
should be ready in a few weeks
@54M1WUL
@54M1WUL 4 жыл бұрын
@@BroCodez thanks much appreciated bro,
@54M1WUL
@54M1WUL 4 жыл бұрын
@@BroCodez will u be making a qt designer course with python
@jhassee
@jhassee 2 жыл бұрын
nice
@STEFAN9484
@STEFAN9484 3 жыл бұрын
can you make next one with JavaScript and after PHP ?
@BroCodez
@BroCodez 3 жыл бұрын
I'm planning on some Javascript videos after the python playlist is finished.
@yeshiiinpark6827
@yeshiiinpark6827 3 жыл бұрын
Thanks!!
@raihanrony1810
@raihanrony1810 3 жыл бұрын
How come the new_game function recognizes the questions dictionary... Its declared after that function.
@vamshireddy6500
@vamshireddy6500 3 жыл бұрын
In the program only the line that contains the functions are loaded first suppose (def new_game(): and if there are any lines of code inside this function they are ignored at first only the functions and arguments are loaded first after loading all the functions the questions dictionary line will run and than the options and after that we call the new_game() then the controller will go inside that function. since the dictionary line is executed we can loop it in the new_game()
@Bhagyashree2004
@Bhagyashree2004 2 ай бұрын
Sir , how to add score board and players ranks .
@DMcDonald14
@DMcDonald14 3 жыл бұрын
Yeah Buddy
@harshvardhankant4579
@harshvardhankant4579 3 жыл бұрын
Thanks brother
@ruraj1393
@ruraj1393 2 жыл бұрын
Bruv that was tough, I don't know how imma survive computer science
@connoryang2894
@connoryang2894 2 жыл бұрын
Would you mind explaining to me how you would add the random module so it can randomly choose questions from your list?
@GaBeKool
@GaBeKool Жыл бұрын
Add „import random“ at the top of the document. Type questions = [„question 1“, question 2“ …..] and let the computer choose your questions by typing „question = random.choice(questions)“. You can then display „question“.
@connoryang7301
@connoryang7301 Жыл бұрын
@@GaBeKool Give me an example
@GaBeKool
@GaBeKool Жыл бұрын
@@connoryang7301 import random questions = [„Are giraffes fluffy?“, „Could my dog eat me if he wanted to?“, „Why do i choose so weird questions?“] question = random.choice(questions) print(question)
@masoudargoshi4312
@masoudargoshi4312 2 жыл бұрын
habibi
@avrorastepa3321
@avrorastepa3321 2 жыл бұрын
wow that was an amazing lesson! the way you explain is really awesome! thank you for your efforts! p.s. Your voice is incredible! :)
@hp.basketball
@hp.basketball Жыл бұрын
I don't get it how the first argument for check_answer(questions.get(key),guess) is the "answer" argument because key in this case is actually the index of the questions from the questions list,right? I'd be very thankful if you could explain this to me.
@kutay6863
@kutay6863 10 ай бұрын
So lets say if we wrote questions.get(values) would the outcome be actually the questions but not the answers?
@ktvkentoypang5956
@ktvkentoypang5956 2 жыл бұрын
How to reshuffle the questioner during retaking the test?
@zamolxezamolxe8131
@zamolxezamolxe8131 3 жыл бұрын
4th question, answer D 🤣😂🤣😂🤣😂
@raghavtyagi3878
@raghavtyagi3878 2 жыл бұрын
i created a game called space invaders
@manuelvaal1257
@manuelvaal1257 3 жыл бұрын
finally i got it. and a could get better how functions work
@saifulislam-vl2wg
@saifulislam-vl2wg 2 жыл бұрын
If i were to ask the questions to multiple users and keep record of their scores how would i do that?
@uuhju7004
@uuhju7004 3 жыл бұрын
ty
@angrydeveloper9352
@angrydeveloper9352 2 жыл бұрын
question:how did you made your printed text to be green :I?
@bentooliveira5679
@bentooliveira5679 3 жыл бұрын
Thanks, Man!
@appiagyeipoku2529
@appiagyeipoku2529 Жыл бұрын
how did the variables work without being declared as global??
@hanmousun
@hanmousun 2 жыл бұрын
Can someone explain to me why Bro used questions.get(key) instead of .get(value) to check for answers at video time (9:01)? Aren't the answers in the questions dictionary in the value part of the dictionary?
@SKK_-xs7hk
@SKK_-xs7hk 2 жыл бұрын
because is a dictionarie
@Verzach3
@Verzach3 4 жыл бұрын
Bro my teacher put me an assignment in which I have to make a complete program with GUI only with the class "Graphics" of java (I can not use neither swing nor awt) and I saw that the Graphics2D videos you have use JFrame, how could I do, do you have any video of that? pd: sorry for the bad english, i'm from colombia
@BroCodez
@BroCodez 3 жыл бұрын
Try JavaFX
@fazeasta6481
@fazeasta6481 3 жыл бұрын
This helps a lot but when you put pass is that a return function or what.
@khalil2751
@khalil2751 3 жыл бұрын
🧐
@mubarakahmad9147
@mubarakahmad9147 3 жыл бұрын
can we make it into a game so other user who dont have python installed. can still play it do you know the method for doing that ?
@emmanuelpaniagua8983
@emmanuelpaniagua8983 2 жыл бұрын
Great Content, Bro
@LosTreloss
@LosTreloss 3 жыл бұрын
Nice video. If i type something else in the input I will get an error. What can I do so it returns the error and ask again for the answer? Thank you.
@biaginamaiorano9161
@biaginamaiorano9161 3 жыл бұрын
grande ti stimo grazie
@atesham7777
@atesham7777 3 жыл бұрын
For which company do u work??
@anime.12yy
@anime.12yy 2 жыл бұрын
MySQL is database
@shaurya1220
@shaurya1220 3 жыл бұрын
Thanks Man ♥
@mehul7147
@mehul7147 2 жыл бұрын
Can i add timer per each question? how do i do that?
@johumus6497
@johumus6497 3 жыл бұрын
Is there a way to create a menu for this quiz
@davidcalebpaterson7101
@davidcalebpaterson7101 3 жыл бұрын
Kivy python framework
@GhosT-oz6bb
@GhosT-oz6bb 3 жыл бұрын
I use python 3.4.4 and the for loop: for key in questions: print("-------------------------") print(key) prints random key from questions dictionary. is this because of the python version?
@dermotgleeson42
@dermotgleeson42 3 жыл бұрын
This is so clear and easy to follow, well done 👏 ✔
@beingzero7541
@beingzero7541 2 жыл бұрын
Bro = "Wow!" print(Bro) Wow!
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 608 М.
Let's code a TIC TAC TOE game in python! ⭕
21:30
Bro Code
Рет қаралды 150 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 337 М.
Python dictionaries are easy 📙
8:06
Bro Code
Рет қаралды 276 М.
👩‍💻 Python for Beginners Tutorial
1:03:21
Kevin Stratvert
Рет қаралды 3,4 МЛН
Building a Multiple Choice Quiz | Python | Tutorial 32
11:12
Giraffe Academy
Рет қаралды 264 М.
Learn Python in 1 hour! 🐍 (2024)
1:00:00
Bro Code
Рет қаралды 188 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,7 МЛН
5 Mini Python Projects - For Beginners
1:41:08
Tech With Tim
Рет қаралды 2,9 МЛН
Simple Multiple Choice Quiz Game in Python
13:12
GenX Coding
Рет қаралды 18 М.
Python for Beginners - Learn Coding with Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 19 МЛН
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 152 М.
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
Такого Корпуса для ПК нет ни у кого в России
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 847 М.
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.
DID YOU NOTICE ANY LAPSES IN THE VIDEO or NOT? / MARGO_FLURY
0:34
MARGO FLURY | Маргарита Дьяченкова
Рет қаралды 12 МЛН
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.