192k views
2 votes
--Beginner PYTHON--

randomly generate a single digit addition problem 2+4= or 5+9=

have the user input the answer

if it's correct, say so

if it's wrong, say so and tell correct answer

game will end when they correctly answer 3 times

User GlenRSmith
by
4.5k points

1 Answer

7 votes

I've included all the code in the image below. Best of luck.

--Beginner PYTHON-- randomly generate a single digit addition problem 2+4= or 5+9= have-example-1
User Sean Landsman
by
4.8k points