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 area of triangle
Python program to find H.C.F of two numbers
Python program that accepts an integer (n) and computes the value of n+nn+nnn
Python program to find the Factorial of any number
Python Program to check if a string is palindrome or not
Python program to swap first and last element of a list
Python program for Armstrong number
Python program which takes radius from user and print area
Python program to accept a filename from the user and print the extension of that
program to print the documents (syntax, description etc.) of Python built-in function(s)
Write a program to add two numbers in python
write() and read() in file handling in python