top of page
top

Python - Section 1 Practice Tasks

noun-code-2821463-FFFFFF.png

Task One: Weekdays

Create a program that prints all 5 weekdays, with each day on a new line.

​

Requirements for a complete program:

  • Use only one print line - use \n.

  • No empty space at the start of a printed line.

Example solution:

Monday

Tuesday

Wednesday

Thursday

Friday

Task Two: Colour & Animal Sentence

Write a program that uses two variables, one for a colour and one for an animal. Print a sentence using both variables.

 

Requirements for a complete program:

  • Use both your variables within one print line.

  • Include capital letters, appropriate punctuation and no irregular spacing in the printed line.

​

Remember: Break up variables in a print line by using commas or plus signs between each part of the "sentence".

Example solutions:

Have you ever seen a purple cat?

A horse that was green galloped past!

Three yellow ants ate my lunch.

Task Three: Number, Adjective & Animal

Write a program that uses three variables, a number, an adjective (descriptive word) and an animal. Print a sentence using all three variables.

​

Requirements for a complete program:​

  • Use all three variables within one print line.

  • Include capital letters, full stops and no irregular spacing in the printed line.

​

Remember: Break up variables in a print line by using commas or plus signs between each part of the "sentence".

Example solutions:

What? 64 sneaky elephants just ran past me!

There were 12 hungry bears in the park.

85 patient spiders waited in the corner.

bottom of page