01: Python: Output

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.


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.

This Post Has 10 Comments

  1. Cameron Cautson

    it was amazing

    1. Alex Murray

      the work was really cool



  3. Mark Routledge.

    Thank you so much for removing the Google Adverts and your swift response. Do you have somewhere dontations can be made or similar to make up for the lost revenue, I’d throw in a least a cup of coffee…

    1. pddring

      You’re welcome. That’s a very kind offer but don’t worry about it – I’ll switch to a different ad provider that doesn’t show such intrusive ads or gives more control over where they’re placed. Look after yourself – all the best for this new lockdown.

  4. Katia Araujo

    Thanks, I think it’s wonderful.

Leave a Reply