python9
python9
https://learning.ccbp.in/course?c_id=a6454e48-d030-4d49-8920-253198052232&t_id=9b13ad84-b75c-4328-9cd3-0c6751ae6b4d&s_id=03d7cf4f-… 1/4
7/27/24, 9:01 PM Revolutionizing the Job Market | NxtWave
Modulus
a%b
Code
PYTHON
1 print(6 % 3)
Output
Code
PYTHON
1 print(7 % 4)
Output
Exponent
https://learning.ccbp.in/course?c_id=a6454e48-d030-4d49-8920-253198052232&t_id=9b13ad84-b75c-4328-9cd3-0c6751ae6b4d&s_id=03d7cf4f-… 2/4
7/27/24, 9:01 PM Revolutionizing the Job Market | NxtWave
**
a ** b
Code
PYTHON
1 print(2 ** 4)
Output
16
Square of a number
Code
PYTHON
1 print(5 ** 2)
Output
25
We can find the square root of a number using the exponent operator to
calculate the square root of a number by keeping the exponent as 0.5
Any number to the power of 0.5 we give the square root value of that
number.
https://learning.ccbp.in/course?c_id=a6454e48-d030-4d49-8920-253198052232&t_id=9b13ad84-b75c-4328-9cd3-0c6751ae6b4d&s_id=03d7cf4f-… 3/4
7/27/24, 9:01 PM Revolutionizing the Job Market | NxtWave
Code
PYTHON
1 print(16 ** 0.5)
Output
4.0
https://learning.ccbp.in/course?c_id=a6454e48-d030-4d49-8920-253198052232&t_id=9b13ad84-b75c-4328-9cd3-0c6751ae6b4d&s_id=03d7cf4f-… 4/4