Computer Science, asked by rajavish456, 7 months ago

write python expression equivalent to the following expression √a+a+2/b​

Answers

Answered by EternalCatasrophe8
2
Code:
#Python expression of the desired statement (easier way)

X = ((a)**(1/2) + a + 2)/b
print(X)

#Harder but more efficient method

from math import sqrt
X= (sqrt(a) + a + 2)/b
print(X)

Hope this helps!
Similar questions