+ 1

Basic Math in Code Playground

I am doing simple math calculations such as 1 + 2 and getting no output. This is making me feel really dumb. Any help?

24th May 2018, 2:00 PM
Marton Pusso
3 Answers
+ 8
You get an output only when you print something to the console. In Python, you can use the print() statement to do so. Anything to be printed goes inside the parentheses. print (1 + 2)
24th May 2018, 2:04 PM
Dev
Dev - avatar
+ 3
You've only recently begun, so stop cursing your own name by calling yourself dumb. Dumb people don't sit around thinking "I'm going to become a programmer!" So give yourself more credit and speak blessing upon yourself instead. You're still learning, so nothing wrong with running into problems or having questions about what you're learning. Before long you'll be an amazing developer and will be here helping out others that are learning. Anyways, keep pushing forward like you are! The process is just as fun as the destination.
24th May 2018, 2:10 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
thanks, I didn't realize you still needed to use the print output. Now I feel really dumb. lol
24th May 2018, 2:07 PM
Marton Pusso