+ 1

I don't know how I solve the example?

Please help me https://code.sololearn.com/c5Mxg92xaQzM/?ref=app

13th Mar 2020, 6:17 AM
Baxtishod Davronov
Baxtishod Davronov - avatar
11 Respuestas
+ 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)
28th Mar 2020, 6:47 AM
K.Suhanya
K.Suhanya - avatar
+ 3
you got the answers from choice list. At print part, you make to change the coding...
28th Mar 2020, 1:47 AM
K.Suhanya
K.Suhanya - avatar
+ 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 👍
28th Mar 2020, 8:35 AM
K.Suhanya
K.Suhanya - avatar
+ 3
Are you happy now...?? now, what do you think....? is this conversation successed??
30th Mar 2020, 1:45 PM
K.Suhanya
K.Suhanya - avatar
+ 3
wow....superb👌
30th Mar 2020, 3:13 PM
K.Suhanya
K.Suhanya - avatar
28th Mar 2020, 6:54 AM
K.Suhanya
K.Suhanya - avatar
+ 2
Thanks very exactly
28th Mar 2020, 7:41 AM
Baxtishod Davronov
Baxtishod Davronov - avatar
+ 1
For example random 3+5=? I need this example 3+5=8 But I didn't it. How do ?
13th Mar 2020, 7:38 AM
Baxtishod Davronov
Baxtishod Davronov - avatar
+ 1
This is worthless conversation
13th Mar 2020, 11:16 AM
Baxtishod Davronov
Baxtishod Davronov - avatar
+ 1
Yes. It's I now writing this program new version. I'll release it soon
30th Mar 2020, 2:34 PM
Baxtishod Davronov
Baxtishod Davronov - avatar
0
What For example?
28th Mar 2020, 4:33 AM
Baxtishod Davronov
Baxtishod Davronov - avatar