how can i perform operations numeric-operations in my code playground ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can i perform operations numeric-operations in my code playground ??

I tried many times to perform a calculation or any other calculation in my code playground but I'm not able to get the output of it .. can someone tell me why ??

6th Mar 2017, 5:44 AM
wansh
2 Answers
+ 14
you need to use print statement. x= 3 y = 2 result = x+y print(result) if your code requires multiple inputs, you insert any data each line x = int(input ("Number 1: ") y = int(input ("Number 2: ") result = x+y print(result) you should input this way: 3 2
6th Mar 2017, 10:04 AM
LayB
LayB - avatar
+ 2
print the result
6th Mar 2017, 7:16 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar