Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Which lines are skipped by Python? How many lines does the program show?
A comment starts with # and Python ignores it.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
A comment starts with #. Python skips everything from the # to the end of the line.
Hi.print("Bye") does not run.Done. The note after it is skipped.Answer: lines 1 and 3 are skipped. The program shows two lines: Hi and Done.
Log in to join the discussion.
Loading…