Write a Python program to calculate the sum of three given numbers, if the values are equal then return thrice of their sum.

**Python Code:**

1 2 3 4 5 6 7 8 9 10 11 12 |
def sum_thrice(x, y, z): sum = x + y + z if x == y == z: sum = sum * 3 return sum print(sum_thrice(3, 2, 4)) print(sum_thrice(2, 2, 2)) |