write python expression equivalent to the following arithmetic/algebraic expressions
✓a+a+2/b
Answers
Answered by
1
Answer:
import math
a = int(input("Enter the value of a : "))
b = int(input("Enter the value of b : "))
ans = math.sqrt(a) + a + 2 / b
print("Answer = ", ans)
Output:
Enter the value of a : 16
Enter the value of b : 2
Answer = 21.0
Question for practice:
Write python expression equivalent to the following arithmetic/algebraic expressions: πr²
Similar questions