import random q = random.randint(10, 100) w = random.randint(10, 100) e = (q, " * ", w) r = int(input(e)) This outputs (i.e):
>>> (60, ' * ', 24) I tried following this post but I faced an error.
I want output to atleast look like:
>>> (60 * 24) What I tried was doing
import random q = random.randint(10, 100) w = random.randint(10, 100) **e = (q + " * " + w)** r = int(input(e)) Which gave me the error.
which gave me the errorWhat error? Please post the error text so we know what you mean. And does your code actually have the 2 stars at the beginning and end of the line like you have in the second example?str(q)andstr(w)before adding them together