write python expression equivalent to the following expression √a+a+2/b
Answers
Answered by
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!
#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