def sum_thrice(x, y, z):
sum = x + y + z
if x == y == z:
sum = sum * 3
return sumprint(sum_thrice(1, 2, 3))
print(sum_thrice(3, 3, 3))
Output:
6
27
def sum_thrice(x, y, z):
sum = x + y + z
if x == y == z:
sum = sum * 3
return sumprint(sum_thrice(1, 2, 3))
print(sum_thrice(3, 3, 3))
Output:
6
27
Python program to find the roots of Quadratic equation
Python program that accepts an integer (n) and computes the value of n+nn+nnn
Write a Python program to display the current date and time
Python code to find sum of elements in given array
Python program for implementation of Bubble Sort
What is Break statement in python
program to display the examination schedule
How to add all number in list in python
Write Hello World Program in Python
Python program to find the Factorial of any number
Python program to print the calendar of a given month and year