0

How can i create a finction in python?

8th Jan 2017, 8:17 AM
Gunank sood
Gunank sood - avatar
3 Antworten
+ 2
def FUNCNAME (): (methods) print ('Hi') FUNCNAME ()
8th Jan 2017, 8:24 AM
Ethan
Ethan - avatar
+ 1
def function_name(arg_1, arg_2): """Documentation""" return x*x function_name(1,2) x=lambda x:return x*x
8th Jan 2017, 8:24 AM
Roman Gräf
Roman Gräf - avatar
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
21st Jan 2017, 1:50 AM
Riley
Riley  - avatar