Skip to content

Coder Tutorial

Menu
  • Home
  • HTML
  • CSS
  • PHP
  • SQL
  • MySQL
  • JS
  • PL/SQL
  • Python
  • Java
  • Oracle
Home
Python
Python Pow

Python Pow

Pow function

The pow(arg1, arg2[arg3]) function return the arg1 to the power arg2. If arg3 is present, then the function return the arg1 to the power arg2, modulo arg3.

Examples

Example 1

>>> pow(2,2)
4
>>> pow(2,3)
8
>>> pow(2,3,2)
0
>>> 

Example 2

>>> a = 3
>>> b = 4
>>> c = 2
>>> pow(a,b)
81
>>> pow(a,b,c)
1
>>>

Tutorials

  • Python Tutorial
  • Numbers
  • Strings
  • Lists
  • IF statement
  • FOR statement
  • Range function
  • Break statement
  • Continue statement
  • Tuples
  • Sets
  • Dictionaries
  • Define Function
  • Define Class
  • Dates and Times
  • String Pattern Matching
  • Read and Write Files
  • Exception Handling
  • Functions

Recent Posts

  • Java Polymorphism
  • Java Encapsulation
  • Java Abstraction
  • PostgreSQL ERROR: cannot begin/end transactions in PL/pgSQL
  • PostgreSQL Column must appear in the GROUP BY clause
  • PostgreSQL Column specified more than once
  • PostgreSQL Create database, Alter database examples
  • PostgreSQL Create schema syntax, Alter schema
  • PostgreSQL Create database user, alter and drop username
  • PostgreSQL Alter table name. Modify column name
Coder Tutorial Copyright © 2025. | Privacy Policy
Back to Top ↑
x