The variable payload is assigned a value.
payload = "temp8105"
Complete the table to show the sequence of outputs when each statement executes.
The first output has been completed for you.
| Statement | Output |
|---|---|
print(payload.length) | 8 |
print(payload.upper) | |
print(payload.left(4)) | |
print(int(payload.right(4)) * 5) |
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.