Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Name the function of an IDE in each case.
pri and the IDE offers print.WHILE is shown in blue, and the lines inside the loop are indented.retrun to return as it is typed.An IDE (integrated development environment) is one program with the tools to write, translate, run and debug code: a code editor, a run-time environment, translators, error diagnostics, auto-completion, auto-correction and prettyprint.
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, go through the solution one step at a time, and check each step against your own.
(a) Auto-completion. It offers the rest of a keyword or identifier.
(b) Prettyprint. Keywords in colour and the structure shown by indents.
(c) Error diagnostics. It finds the error and shows the line and what is wrong.
(d) Run-time environment. The program runs inside the IDE, with its input and output.
(e) Auto-correction. It fixes a common typing mistake by itself.
Watch out. (a) and (e) are easy to swap. Auto-completion finishes what you started; auto-correction fixes what you typed wrongly.
Log in to join the discussion.
Loading…