+ 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?
3 Respuestas
+ 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)
+ 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.
+ 1
thanks, I didn't realize you still needed to use the print output. Now I feel really dumb. lol