Extend it:

Write a program that displays an output

Output: Write a program that displays an output

Whatever you might have heard people say about programmers, programming can be a really creative thing: You get to write code that can do absolutely anything. You can get a computer to do and say whatever you want it to so you can create something that nobody’s ever created before or improve something that someone’s done already.

Here are three suggestions for challenges to work on in order to practise outputting text using the print  function in python.

Challenges:

You don’t need to do all of these challenges: just choose one.

If you can think of a more creative thing to do – go for it – as long as you use print at least 5 times and don’t have any error messages.

  1. Write code that outputs the lines of your favourite song

    Why not write a new verse or improve the lyrics to make it more personal to you?

  2. Write code that tells 5 different jokes

    Try to think of at least one joke yourself

  3. Write code that tells a short bedtime story for kids

    A good story has a start, a middle and an end. You want it to be interesting but not to scary…

Page 1: Intro

Page 2: The theory: learn what you need to know as fast as possible.

Page 3: Try it: try out and adapt some working python code snippets.

Page 4: Debug it: Learn how to find and fix common mistakes.

Page 5: Extend it: Choose a project idea to use your newfound python skills.