What is the output of print(2 ** 3) in Python?
-
A
6
-
B
8
Correct answer
-
C
9
-
D
12
11 views
Explanation
** is the exponentiation operator: 2³ = 8. Source: NBF StudyHub, Chapter 1, Q2.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ