Skip to content

Instantly share code, notes, and snippets.

Created Dec 22, 2020
What would you like to do?
def factorial(n) -> object:
return 1 if (n==1 or n==0) else n * factorial(n-1)
n= int(input("enter number"))
def greatest(x,y,z):
if (x>y)and(x>z):
print(x,"is greatest")
elif (y>x)and (y>z):
print(y,"is greatest")
print(z,"is greatest")
def addtwo(x,y):
return x+y
def subtracttwo(x,y):
return x-y
def multiplytwo(x,y):
return x*y
def dividetwo(x,y):
return x/y
def square(x):
return (x*x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment