Which operator is used for exponentiation in Python?
- &
- **
- //
- ^
The '**' symbol in Python is used for exponentiation. It raises the first operand to the power of the second operand. For example, 2 ** 3 returns 8 because it calculates 2 raised to the power of 3.
Loading...
Related Quiz
- In terms of encapsulation, why might a developer use property decorators instead of directly accessing an attribute?
- In Python, what term is used when a function is defined inside another function?
- In Python, a multi-line string can be defined using _______ characters.
- Which Python framework allows you to integrate Python back-end code with HTML, CSS, and JavaScript for web development?
- In Python, the base class is also commonly referred to as the _______ class.