The Python code needs interconnecting paths

The solution's mapped out, and now we know that the program code will need to have paths that match this:

But isn't there a problem here? In the design there are many interconnecting paths, but so far, we have only written code that contains just one branch:

print("You lose!")

In the new code, we will need to connect two branches together. We need the second branch to appear on the false path of the first.

So how do you connect branches together in Python?

Was this article helpful?

0 0

Post a comment