You will need to learn how to “Think Like A Computer” by reading code and predicting the output.  Let’s practice with a few examples:

Read Code with No If or While #1

Read Code with No If or While #2

Read Code with If #1

Read Code with If #2

Read Code with If #3

Read Code, the whole story #1

Read Code, the whole story #2