2+2 or any other math problem works in Python's IDE for me but not in VS 2019. Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

2+2 or any other math problem works in Python's IDE for me but not in VS 2019. Why?

I can do the print("Hello World!") in Visual Studio 2019 just fine but when I do a simple 2+2 or 10-2 in it no errors are shown but the command line ignores them and is only the "Press any button to continue". Thanks

16th Nov 2019, 4:28 PM
Damon
3 Answers
+ 3
Maybe you forgot to print result? print(2+2)
16th Nov 2019, 4:35 PM
Asman-H
Asman-H - avatar
+ 1
Damon, not at all :)
16th Nov 2019, 4:51 PM
Asman-H
Asman-H - avatar
0
Thank you Asman. That worked. I was following the solo learn code example and it didn't say to do that. There basing it off the Python IDE which handles it diffrent I suppose. Thank you again :-)
16th Nov 2019, 4:48 PM
Damon