Simple Operations in python
|
|
| Simple Operations in python |
So Python can spell, but can it count? Let’s talk about calculations. Doing a calculation in Python is simple, just enter it into the print statement (don’t forget the parentheses!):
RUN
See the spaces around the plus and minus signs? The code would work without them–but they make it a lot easier to read.