31.7k views
4 votes
2.5 Code Practice

import random

a = 6
b = 3

answer = a + b

print (str(a) + " + " + str(b) + " = " + str(answer))

2 Answers

5 votes

Answer:

from math import

User Tom Maher
by
5.9k points
3 votes

Answer:

import random

a = random.randint(1,10)

b = random.randint(1,10)

answer = a * b

print (str(a) + " * " + str(b) + " = " + str(answer))

Step-by-step explanation:

Worked!

User Fals
by
4.6k points