if statement - Python: Controlling using if -
i have code:
def the_flying_circus(): if true , true , true , not false: print "kevin stinkt" elif 10 < 4: print "justin stinkt" else: print "herb-wuerzig" when print the_flying_circus kevin stinkt printed, none return. need false homecoming online tutorial. why none, , how can accomplish true?
none homecoming value of function. function finishes without explicit return statement homecoming none.
in response additional question:
if want function homecoming true, put
return true at end. if want homecoming false, put
return false at end.
python if-statement printing control
No comments:
Post a Comment