Unit 4 Task 2: Screen divider

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 4 Task 2 - Screen divider

← Unit 4 tasks · Solution


Write a function divider() with no parameters that prints a line of 30 dash characters (-).

Then write a short program: call divider(), print a title such as Today's practice, then call divider() again.

Skills: def with empty parameter list, repeated output.