Computer Science
How would you write xy in Python as an expression ?
- x^y
- x**y
- x^^y
- none of these
Python Funda
2 Likes
Answer
x**y
Reason — ** is an arithmetic operator used for exponentiation.
Answered By
1 Like
How would you write xy in Python as an expression ?
2 Likes
x**y
Reason — ** is an arithmetic operator used for exponentiation.
Answered By
1 Like