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
@BroCodez3 жыл бұрын
thanks for watching Archer!
@luigi42042 жыл бұрын
Do you master this now?
@f-s_interpreter2 жыл бұрын
@@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!!!!!!!
@67k2 жыл бұрын
hows it coming along?
@meekaaresaba17217 ай бұрын
@@f-s_interpreter
@davidmcdade99514 жыл бұрын
I love your clear, concise explanation and code. As usual, another great video!
@BroCodez3 жыл бұрын
Thanks for watching David!
@Uhmatmcr Жыл бұрын
honestly thank you the other video about quizzes didn't work but yours did
@MuhammadArshad-vv4xx5 ай бұрын
Sir, I love this way to teach in detail,each and every aspect of quiz game❤❤❤❤❤
@davidcalebpaterson71013 жыл бұрын
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. 👌
@BroCodez3 жыл бұрын
thanks for the input. I was trying to record something understandable to most people, rather than something efficient but cryptic.
@francismannion70757 ай бұрын
Thank you that was clear and easy to understand.
@miles_walker2 жыл бұрын
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!
@JonBraydenCodes2 жыл бұрын
This video is really amazing and help me a lot in exploring the python.
@CarlJohnson-dr3tv4 жыл бұрын
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
@BroCodez3 жыл бұрын
thanks Carl!
@lastwaveundergroundsaviour70372 жыл бұрын
Thanks, ive gone from your Java tutorials now to Python. Loving it
@hannsalmasan54593 жыл бұрын
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-h1n9 ай бұрын
I love your quiz game video for Java. Do you have one for Python that uses Tkinter?
@henal052 жыл бұрын
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🙆
@grigoldvali41242 жыл бұрын
Thanks for this game!!!!!
@simontheuns72802 жыл бұрын
Thank you for the quiz, i really love your content and keep going!
@fazeasta64813 жыл бұрын
Great video I’m doing my Create task right now This is my inspiration for my game.
@salatatoe68123 жыл бұрын
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.
@RhombusDaily2 жыл бұрын
Thanks! Helped a lot to understand a lot of things!
@Verzach34 жыл бұрын
U are the best!
@alirezafarzin31262 жыл бұрын
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:)
@ajetsfan2 жыл бұрын
BRO...this is awesome, thank you for being such a bro
@airlanggak53913 жыл бұрын
thanks so much for sharing!
@charlespermezel76303 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@GaBeKool thx bro
@piotrkopcewicz52272 жыл бұрын
great tutorial !! that was tough. Thanks
@stickydamper4 жыл бұрын
Tkank you :-)
@yiorgoskatopodis2 жыл бұрын
Bro, that one was superb!!! Congrats!!!
@yourroboticfriendexe49073 жыл бұрын
YOU ARE A LIFE SAVER THANK YOU SO MUCH
@libaaxalee3 жыл бұрын
Thank you very much, the helped reduce my headache as I kept making mistake.
@melaniebenitez88513 жыл бұрын
Thank you so much this helped lots!
@rishabh64853 жыл бұрын
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...
@vamshireddy65003 жыл бұрын
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.
@rishabh64853 жыл бұрын
Thanks a lot☺️ This was very helpful!
@wasimgamer13643 жыл бұрын
@@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 Жыл бұрын
Can you make a video about making a quiz using easy gui
@Verzach34 жыл бұрын
Keep the videos just like this, you explain very good
@aliyaperetch80166 ай бұрын
Great game!
@knowleg547 Жыл бұрын
Op🎉
@acapella94362 жыл бұрын
Nice video. I want there to be a countdown when the question comes up. how can I do it?
@Eli-u6i3n2 ай бұрын
ty!
@kutay686310 ай бұрын
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-up9lq6 ай бұрын
nice tutorial
@HanD_19642 жыл бұрын
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!
@BroCodez2 жыл бұрын
*released in 1991
@william07123 жыл бұрын
thanks bro for this video, so I have a question: Python quiz games is machine learning project, right?
@EPS082 жыл бұрын
thanks bro it helped me alot!
@mihiradarsh32863 жыл бұрын
Thankyou for this
@cattxx3 жыл бұрын
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?
@cattxx3 жыл бұрын
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?
@sosovanrotha25022 жыл бұрын
@@cattxx As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.
@catherinetung2 жыл бұрын
@@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.
@sosovanrotha25022 жыл бұрын
@@catherinetung haha are you still learning huh?
@catherinetung2 жыл бұрын
@@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
@laliteshpandey3443 жыл бұрын
Wow thanks man! use while loop for play again and import main file.
@anonymoustroll80623 жыл бұрын
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.
@emadeldeennassar5433 жыл бұрын
Thanks a lot
@kahitano4962 жыл бұрын
Thank you Sir, you save me.
@died_tried2 жыл бұрын
ure cool
@Adamapol2 жыл бұрын
nc😀😀😀
@spartanranger3 жыл бұрын
Thanks for the video Bro
@Whisperingwillowindieband3 жыл бұрын
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
@joshuaolebogeng96702 жыл бұрын
please BRO MAKE THIS QUIZ GUI Tkinter py
@arifraser-haste98822 жыл бұрын
how would you validate user input for the answers, I've been trying to do this and going round in circles
@Softme.m2 жыл бұрын
best coding channel keep going🌺🍡
@preschoolPT2 жыл бұрын
awesome
@kemann38152 жыл бұрын
Excellent
@Ramadan_series122 жыл бұрын
@Angry_Cat002 жыл бұрын
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()
@SlipperyNutella2 жыл бұрын
Just preference or he might have done it so that it's easier to present his code for the video. Both works fine
@irfanquader64172 жыл бұрын
bro you are awesome
@Deemero2 жыл бұрын
mantap
@dimiouthemud3 жыл бұрын
In the questions list, can I have more than one answer be correct? If so, then how?
@art-sauce4 жыл бұрын
Glad I subscribed
@BroCodez3 жыл бұрын
thanks Nashaat!
@art-sauce3 жыл бұрын
Keep up the good work!
@54M1WUL4 жыл бұрын
cant wait for a 12 hour python course from u
@BroCodez4 жыл бұрын
should be ready in a few weeks
@54M1WUL4 жыл бұрын
@@BroCodez thanks much appreciated bro,
@54M1WUL4 жыл бұрын
@@BroCodez will u be making a qt designer course with python
@jhassee2 жыл бұрын
nice
@STEFAN94843 жыл бұрын
can you make next one with JavaScript and after PHP ?
@BroCodez3 жыл бұрын
I'm planning on some Javascript videos after the python playlist is finished.
@yeshiiinpark68273 жыл бұрын
Thanks!!
@raihanrony18103 жыл бұрын
How come the new_game function recognizes the questions dictionary... Its declared after that function.
@vamshireddy65003 жыл бұрын
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()
@Bhagyashree20042 ай бұрын
Sir , how to add score board and players ranks .
@DMcDonald143 жыл бұрын
Yeah Buddy
@harshvardhankant45793 жыл бұрын
Thanks brother
@ruraj13932 жыл бұрын
Bruv that was tough, I don't know how imma survive computer science
@connoryang28942 жыл бұрын
Would you mind explaining to me how you would add the random module so it can randomly choose questions from your list?
@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 Жыл бұрын
@@GaBeKool Give me an example
@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)
@masoudargoshi43122 жыл бұрын
habibi
@avrorastepa33212 жыл бұрын
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 Жыл бұрын
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.
@kutay686310 ай бұрын
So lets say if we wrote questions.get(values) would the outcome be actually the questions but not the answers?
@ktvkentoypang59562 жыл бұрын
How to reshuffle the questioner during retaking the test?
@zamolxezamolxe81313 жыл бұрын
4th question, answer D 🤣😂🤣😂🤣😂
@raghavtyagi38782 жыл бұрын
i created a game called space invaders
@manuelvaal12573 жыл бұрын
finally i got it. and a could get better how functions work
@saifulislam-vl2wg2 жыл бұрын
If i were to ask the questions to multiple users and keep record of their scores how would i do that?
@uuhju70043 жыл бұрын
ty
@angrydeveloper93522 жыл бұрын
question:how did you made your printed text to be green :I?
@bentooliveira56793 жыл бұрын
Thanks, Man!
@appiagyeipoku2529 Жыл бұрын
how did the variables work without being declared as global??
@hanmousun2 жыл бұрын
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_-xs7hk2 жыл бұрын
because is a dictionarie
@Verzach34 жыл бұрын
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
@BroCodez3 жыл бұрын
Try JavaFX
@fazeasta64813 жыл бұрын
This helps a lot but when you put pass is that a return function or what.
@khalil27513 жыл бұрын
🧐
@mubarakahmad91473 жыл бұрын
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 ?
@emmanuelpaniagua89832 жыл бұрын
Great Content, Bro
@LosTreloss3 жыл бұрын
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.
@biaginamaiorano91613 жыл бұрын
grande ti stimo grazie
@atesham77773 жыл бұрын
For which company do u work??
@anime.12yy2 жыл бұрын
MySQL is database
@shaurya12203 жыл бұрын
Thanks Man ♥
@mehul71472 жыл бұрын
Can i add timer per each question? how do i do that?
@johumus64973 жыл бұрын
Is there a way to create a menu for this quiz
@davidcalebpaterson71013 жыл бұрын
Kivy python framework
@GhosT-oz6bb3 жыл бұрын
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?
@dermotgleeson423 жыл бұрын
This is so clear and easy to follow, well done 👏 ✔