Python Math Quiz

  Рет қаралды 10,467

Dave Briccetti

Dave Briccetti

4 жыл бұрын

I create a Python program that gives multiplication problems and times how long each problem takes.
Code: github.com/dcbriccetti/python...

Пікірлер: 20
@DinoCrazy15
@DinoCrazy15 Жыл бұрын
5:45 correct in 7 and a ridiculous number of decimal places
@joshuabarker6791
@joshuabarker6791 3 жыл бұрын
thanks for the video i was wondering how i would go about making a final score of how many questions i had answered
@DaveBriccetti
@DaveBriccetti 3 жыл бұрын
Hi! Here are changes to do that. github.com/dcbriccetti/python-lessons/commit/2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
@joshuabarker6791
@joshuabarker6791 3 жыл бұрын
@@DaveBriccetti thanks 👍🏽
@DinoCrazy15
@DinoCrazy15 Жыл бұрын
what if you wanted to add a score for every time you got one correct?
@DaveBriccetti
@DaveBriccetti Жыл бұрын
Hi. I see that feature in this code: github.com/dcbriccetti/python-lessons/blob/master/simple/mathquiz.py
@mad_rogue_gx07
@mad_rogue_gx07 11 ай бұрын
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?
@DaveBriccetti
@DaveBriccetti 11 ай бұрын
Good ideas. Hard to answer. Perhaps I’ll code that one day. Anybody else have an example?
@Icecreambagel
@Icecreambagel 2 жыл бұрын
how would you do it if it was not random
@DaveBriccetti
@DaveBriccetti 2 жыл бұрын
Hi! I suppose you could pull problems from a file or database or something. Am I understanding your question?
@Icecreambagel
@Icecreambagel 2 жыл бұрын
@@DaveBriccetti its ok now i hope you have an amazing day sir!
@vicentebellogiacomassi9016
@vicentebellogiacomassi9016 4 ай бұрын
whats the f for in the input parenthesis
@DaveBriccetti
@DaveBriccetti 4 ай бұрын
f strings are very helpful. I encourage you to look it up.
@irenic6913
@irenic6913 Жыл бұрын
thank you .. how do I repeat the question I answered wrong ?
@DaveBriccetti
@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
@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
@DaveBriccetti Жыл бұрын
My pleasure
@MonDellBit
@MonDellBit 8 ай бұрын
how can i make it into pygame?
@DaveBriccetti
@DaveBriccetti 8 ай бұрын
Hi. What do you think it might look like in PyGame?
@MonDellBit
@MonDellBit 8 ай бұрын
@@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
5 Good Python Habits
17:35
Indently
Рет қаралды 385 М.
A Simple Python Quiz Program
12:29
Dave Briccetti
Рет қаралды 30 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 20 МЛН
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 19 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 19 МЛН
Create a QUIZ GAME with Python 💯
9:29
Bro Code
Рет қаралды 184 М.
5 Really Cool Python Functions
19:58
Indently
Рет қаралды 50 М.
Math & Variables in Python - Beginner Python Tutorial #1
18:27
Keith Galli
Рет қаралды 83 М.
1st Year Calculus, But in PYTHON
32:13
Mr. P Solver
Рет қаралды 119 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
Python - BMI Calculator
6:56
Wrt Tech
Рет қаралды 42 М.
PYTHON BASICS (What I Would Learn First)
24:50
Internet Made Coder
Рет қаралды 133 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 293 М.
How to code in Swift | Swift Basics #1
18:25
Swiftful Thinking
Рет қаралды 34 М.
Building a Multiple Choice Quiz | Python | Tutorial 32
11:12
Giraffe Academy
Рет қаралды 261 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 20 МЛН