The variable secret is assigned a value.
secret = "byte3456"
Complete the table to show the sequence of outputs when each statement executes.
The first output has been completed for you.
| Statement | Output |
|---|---|
print(secret.length) | 8 |
print(secret.upper) | |
print(secret.left(4)) | |
print(int(secret.right(4)) * 2) |
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.