I wrote this code
def function1():
message = "I am function 1"
def functin2():
message = "I am function 2"
print(function1())
print(functin2())
plz help
I wrote this code
def function1():
message = "I am function 1"
def functin2():
message = "I am function 2"
print(function1())
print(functin2())
plz help
your function doesnt return anything. You need to add a return statement.
def function1():
message = "I am function 1"
return message
def functin2():
message = "I am function 2"
return message