Python Lessons-1.4 Other numeric operations

Python Lessons-1.4 Other numeric operations

Power elevation

The power elevation can be carried out by the operator * *

> > > 2 * * 4
16

Quotient and remainder

Sometimes in some algorithms you need to know in the operations of division, not the result, but the quotient values and remainder. The remainder operation is often also called module (11 Module 3)

> > > 11//3
2
> > > 11% 3
3

⇐ go to Lesson 1.4-Floating Number

Go to Lesson 1.5-strings

Leave a Reply