ProceduralOCR J277
DashboardCoursePracticeReviewProgressGlossary
Saved on this deviceContinue learning

Procedural · OCR J277 programming practice

Progress stays in this browser unless you export it.

Course/Input/Combining input and output
J277 · 2.2.1

Unit 3 · Lesson 2

Combining input and output

Lesson progress0 / 7

Build the idea

Start with the concept and its key vocabulary.

Key idea

Join string values and use them in personalised output.

A program becomes interactive when it uses an input in later output. Use + to concatenate strings. Include any spaces or punctuation you want inside the quoted text.

Concatenation

Joining two or more strings together using the + operator.

Sequence

Instructions executed in order, one after another.

Separator

A character or space placed between items of output.

Keep these in mind

  • Get the input before trying to use it.
  • The + operator joins strings.
  • Add a space inside the string when two words should not run together.

Learning objective

Join string values and use them in personalised output.

Exam tip

ERL uses + for concatenation. Python can print items separated by commas, but that is not concatenation and should not be copied into ERL.

Common mistake

print("Hello," + name) produces no space after the comma. Write "Hello, " with a trailing space.

PreviousNext