0
How can i create a finction in python?
3 Respuestas
+ 2
def FUNCNAME ():
(methods)
print ('Hi')
FUNCNAME ()
+ 1
def function_name(arg_1, arg_2):
"""Documentation"""
return x*x
function_name(1,2)
x=lambda x:return x*x
0
Def name()
Print("Hey")
#First name the function and what it does. Needs indention for what it does.
Then to call it just write the name
name()
Output:Hey