If Problem


#1

If I use the following code:

def using_control_once():
if 3>2:
return “Success #1

def using_control_again():
if 100 < 10:
return “Success #2

print using_control_once()
print using_control_again()

Why does it print “None” for the using_control_again() ?
Why doesn’t it just skip it and print only using_control_once() ?


#2

Because there is no return for else.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.