+ 1
I don't know how I solve the example?
Please help me https://code.sololearn.com/c5Mxg92xaQzM/?ref=app
11 Réponses
+ 3
corrected coding 👇 (check it )
import random
e = '='
for i in range(16):
x = random.randrange(50)
y = random.randrange(50)
o = random.choice(["+", "-", "*", "/"])
if (o=="+"):
ans=x+y
elif (o=="-"):
ans=x-y
elif (o=="*"):
ans=x*y
else:
ans=x/y
print(x,o, y, e, ans)
+ 3
you got the answers from choice list. At print part, you make to change the coding...
+ 3
welcome. ☺
clearly learn... operations different coding from real life. example multiple in coding "*" in real life "×"
and... when you struggle to solve a problem, think how to solve manually... so, you can get solution 👍
+ 3
Are you happy now...??
now, what do you think....? is this conversation successed??
+ 3
wow....superb👌
+ 2
Thanks very exactly
+ 1
For example random 3+5=?
I need this example 3+5=8
But I didn't it. How do ?
+ 1
This is worthless conversation
+ 1
Yes. It's
I now writing this program new version. I'll release it soon
0
What For example?