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
English,
2 months ago
Hindi,
2 months ago
Social Sciences,
2 months ago
Math,
9 months ago
Hindi,
9 months ago