Q. What is the output of the Python code: print(2**3)?
Solution:
In Python, ** denotes exponentiation. Thus, 2**3 calculates 2 raised to the power of 3, which is 8.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
In Python, ** denotes exponentiation. Thus, 2**3 calculates 2 raised to the power of 3, which is 8.
Strengthen Your Practice with our comprehensive question bank.