Skip to content Skip to sidebar Skip to footer

How To Execute Def Command Without Showing None

I'm trying to make a function run another function and then ask for input. The thing is that when I use the print option it returns None after exectuing the def, but when I use the

Solution 1:

Simply:

def main():
     print_board(board)
     ...

This will call print_board(), but will neither print out its return value (None) nor terminate main().

Post a Comment for "How To Execute Def Command Without Showing None"