Q. What is the output of the Python code: print(2**3)?

A
6
B
8
C
9
D
23
Solution:

In Python, ** denotes exponentiation. Thus, 2**3 calculates 2 raised to the power of 3, which is 8.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!