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 get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
Write a Python program to test whether a passed letter is a vowel or not.
Write a Python program to display the current date and time.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Write a Python program to get the volume of a sphere with radius six.