I create a Python program that gives multiplication problems and times how long each problem takes. Code: github.com/dcbriccetti/python...
Пікірлер: 20
@DinoCrazy15 Жыл бұрын
5:45 correct in 7 and a ridiculous number of decimal places
@joshuabarker67913 жыл бұрын
thanks for the video i was wondering how i would go about making a final score of how many questions i had answered
@DaveBriccetti3 жыл бұрын
Hi! Here are changes to do that. github.com/dcbriccetti/python-lessons/commit/2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
@joshuabarker67913 жыл бұрын
@@DaveBriccetti thanks 👍🏽
@mad_rogue_gx0711 ай бұрын
so i want to extract it by ask random question from summation, subtract, multiply, divided and game over now if you do wrong then what should i code it?
@DaveBriccetti11 ай бұрын
Good ideas. Hard to answer. Perhaps I’ll code that one day. Anybody else have an example?
@DinoCrazy15 Жыл бұрын
what if you wanted to add a score for every time you got one correct?
@DaveBriccetti Жыл бұрын
Hi. I see that feature in this code: github.com/dcbriccetti/python-lessons/blob/master/simple/mathquiz.py
@Icecreambagel2 жыл бұрын
how would you do it if it was not random
@DaveBriccetti2 жыл бұрын
Hi! I suppose you could pull problems from a file or database or something. Am I understanding your question?
@Icecreambagel2 жыл бұрын
@@DaveBriccetti its ok now i hope you have an amazing day sir!
@vicentebellogiacomassi90164 ай бұрын
whats the f for in the input parenthesis
@DaveBriccetti4 ай бұрын
f strings are very helpful. I encourage you to look it up.
@irenic6913 Жыл бұрын
thank you .. how do I repeat the question I answered wrong ?
@DaveBriccetti Жыл бұрын
Hi. You're welcome. Maybe use a variable to indicate whether the answer was correct, and an if statement around the lines that recompute num1 and num2. Do you use ChatGPT? I'll bet it could make the change for you.
@irenic6913 Жыл бұрын
@@DaveBriccetti No I don't use it but I do understand what I should do thank you so much for the quick response
@DaveBriccetti Жыл бұрын
My pleasure
@MonDellBit7 ай бұрын
how can i make it into pygame?
@DaveBriccetti7 ай бұрын
Hi. What do you think it might look like in PyGame?
@MonDellBit7 ай бұрын
@@DaveBriccetti my idea is: idea: +Main menu: have the title of the game on the top, then there a menu that you can choose level, there 3 levels, each level is different difficulty for grade 1 to 3(make it each box is each grade), you choose then enter the main gameplay + the gameplay: You are given a calculation to solve(appear on the top of the screen), there are 4 answers in 4 box with the different colour and u just have 60 second to solve as much as you can (show the time at the conner) and u need to click the correct answer, if u click the correct answers, next calculation will appear and your point +1(show point at the conner under the time), or else, the game will stop and clear all thing on the screen and appear GAMEOVER text with voice that i can add from local file and point you have (It appear for 5 seconds then switch into the main menu). + The calculation: from 2 to 4 number (number