Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Output

Output is necessary so that we can see the results of programs.

Why do we need outputs?

Why do we need outputs?

  • Outputs are important so that we can communicate the result of a program to the user.
  • Outputs are usually delivered as text onto the screen.
The print function

The print function

  • The output function in Python is called ‘print’.
  • The output function ‘prints’ data onto the screen.
    • E.g. print(“Hello, world!”) would output the text “Hello, World!”.
What data can be outputted?

What data can be outputted?

  • Output data must be a string before we can print it.
  • If we want to display data that is not a string, then we must first cast it to a string.
Jump to other topics
1

Computational Thinking & Algorithms

2

Programming

3

Hardware & Software

4

Data

5

The Internet

6

Online Safety & Security

Practice questions on Output

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
Answer all questions on Output

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium