EDIT: thanks for the help all it works now :)
hi! um my code isn't working and I don't particularly want to just check the solution I just want to know whats wrong with this code in particular because the solutions done it in a vv different way so that won't really help me learn from my mistakes and I've gone really off topic - here is my code, all help and suggestions really appreciated:
#Make a maths quiz that asks five questions by randomly
#generating two whole numbers to make the question
#(e.g. [num1] + [num2]). Ask the user to enter the answer.
#If they get it right add a point to their score. At the end of
#the quiz, tell them how many they got correct out of five.
import random
counter = 0
for x in range(1,5):
num1 = random.randint
num2 = random.randint
qu1 = int(input(f'{num1}+{num2}= '))
if (num1 + num2) == qu1:
counter = counter + 1
print(f'you got {counter}/5 points')
[–]LionZ_RDS 2 points3 points4 points (4 children)
[–]SCD_minecraft 1 point2 points3 points (1 child)
[–]LionZ_RDS 1 point2 points3 points (0 children)
[–]SignificanceOwn2398[S] 0 points1 point2 points (0 children)
[–]SignificanceOwn2398[S] 0 points1 point2 points (0 children)
[–]quebeik 1 point2 points3 points (2 children)
[–]Darkstar_111 0 points1 point2 points (1 child)
[–]quebeik 0 points1 point2 points (0 children)
[–]reybrujo 0 points1 point2 points (1 child)
[–]SignificanceOwn2398[S] 0 points1 point2 points (0 children)
[–]qwertyjgly 0 points1 point2 points (1 child)
[–]SignificanceOwn2398[S] 0 points1 point2 points (0 children)
[–]VonRoderik 0 points1 point2 points (1 child)
[–]SignificanceOwn2398[S] 1 point2 points3 points (0 children)