Hello Beginner trying to learn python following this tutorial here
Again any help would be appreciated I'm new here and I'm experiencing the same problem on another project so this could help me solve it.
CodePudding user response:
You don't seem to be running the main play()
function. Do note it says "exit code 0" meaning program finished, not "line 0".
Try adding this at the bottom of the file:
if __name__ == "__main__":
play()
It will run the play()
function when the module is executed.
Keep in mind you shouldn't return 'Its a tie!'
without printing it or doing something else with the return value.