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.
- 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?
- Write code that tells 5 different jokes
Try to think of at least one joke yourself
- 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…