def myfun(x,y,z): sum = x + y + z if x == y == z: sum = sum * 3 return sum if __name__=="__main__": print(myfun(1,2,3)) print(myfun(4,4,4))
6 36
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a python program to find absolute value of a number in the list
Write a Python program to find out what version of Python you are using.
Write a python program to print flatten a nested list
Write a Python Program to Find LCM.
Write a Python program to find the area of a triangle.