Question PRG-PY-0007
EasyWhat is the output of this program?
print(2 ** 3)
- A.
6
- B.
8
- C.
Show answer and explanation
Answer: B
** is exponentiation: 2³ = 8.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is the output of this program?
print(2 ** 3)
6
8
Answer: B
** is exponentiation: 2³ = 8.
9
5