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 calculate the number of days between two dates.
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Write a Python program to display the current date and time.
Write a Python program that accepts a filename from the user and prints the extension of the file.
Write a Python program that checks whether a specified value is contained within a group of values.