Online worksheet ยท 2 of 4

A function can separate one clear job - Online practice 2

Read the information, then answer the questions. An adult may read the instructions aloud. Show your working where asked.

Read before answering

Python definition: def adjust(n): return n * 3 + (2). Evaluate adjust(5) + 1. This function returns a numeric result to its caller; it does not print. In a different definition containing only print(n * 3 + (2)), there is no explicit return statement. Inputs here are integers.

Worksheet preview

This exercise is included in the paid course. Full-course fee: GBP 200.00 once. Register and enrol to complete all course exercises and download the course PDFs. Access begins after payment is confirmed.

Register and enrol

Already registered? Sign in