Error
There was an error loading the page.
Given a randomly-generated list, the student must write code to return its first value.
There's an alternative to check if they get the second item, which they might do if they don't realise Python lists are zero-indexed.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
Feedback
From users who are members of Programming extension :
![]() |
said | Needs to be tested | 3 years, 1 month ago |
History
Christian Lawson-Perfect 1 year, 10 months ago
Published this.Christian Lawson-Perfect 3 years, 1 month ago
Gave some feedback: Needs to be tested
Christian Lawson-Perfect 3 years, 1 month ago
Created this.Name | Status | Author | Last Modified | |
---|---|---|---|---|
Get the first item in a list | Needs to be tested | Christian Lawson-Perfect | 10/05/2023 13:29 | |
Get the last item in a list | Needs to be tested | Christian Lawson-Perfect | 10/05/2023 13:29 | |
Get the first item in a list | Ready to use | Christian Lawson-Perfect | 23/11/2023 11:36 | |
Get the last item in a list | Ready to use | Christian Lawson-Perfect | 23/11/2023 11:36 |
There are 11 other versions that do you not have access to.
Name | Type | Generated Value |
---|
No variables have been defined in this question.
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet |
This question is used in the following exam: