Choose the first matching if branch
A short captioned explanation from Michael's Python fundamentals workshop. Use the examples on this page to practise the idea afterwards.
Read the clip summary
Test whether the number is greater than 5 first. If it is not, test whether it is greater than 2. An integer input of 3 reaches the middle branch; an input of 6 reaches the first branch and skips the others.