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 that accepts a filename from the user and prints the extension of the file.
Write a Python program that prints the calendar for a given month and year.
Write a Python program to find out what version of Python you are using.
Print out a set containing all the colors from a list which are not present in other list
Write a Python program that checks whether a specified value is contained within a group of values.