πŸ“Š Python
Q. What is the output of the following code?
Code:
x = 5
y = 2
print(x ** y)
  • (A) 25
  • (B) 7
  • (C) 10
  • (D) 2.5
πŸ’¬ Discuss
βœ… Correct Answer: (A) 25

Explanation: ** is the exponentiation operator in Python, so 5 ** 2 = 25.

Explanation by: Ankit Singh
** is the exponentiation operator in Python, so 5 ** 2 = 25.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
37
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Ankit Singh
Publisher
πŸ“ˆ
95%
Success Rate