Computer Science, asked by ChillGuy, 1 year ago

syntax for arithmetic operations in python​

Answers

Answered by VSSK86
2

Arethematic operators in python

+

-

%

/

**

//


ChillGuy: an example
Answered by fiercespartan
1

Here are the basic arithmetic operations for python:

'+' -- addition , input = 2+3 , output = 5

'-' -- subtraction, input = 2-3, output = -1

'*' -- multiply, input = 2*3, output = 6

'/' -- divide, input = 2/3, output = 0.6666666666666666

'//' -- just the quotient(no decimal), input = 2//3, output = 0

'%' -- modulo/remainder, input = 2%3, output = 2

'**' -- power, input = 2**3, output = 8

Hope it helps!

Similar questions