Practical 6
Practical 6
Y8-Computing
Unit 9.1: Presenting choices: Combining Constructs
Unit :9.6: An array of skills
Array: An array is a data structure that allows you to store multiple pieces of data under a
single identifier. e.g.: [“bread”,” milk”,” apple”], [22,42,67,34]
List: data structure in python that can store multiple items of data of mixed data types under a single
identifier; data items can be changed
Tuple: data structure for storing multiple items of data in a single variable; values cannot be changed
1. drive master 3D
2. subway surfers
3. Add another game Temple run in your list using append () method and print all four games
together.
Evidence 1: Take the screenshot of python shell & script mode both and paste it in your
evidence file.
4. Display each item of the list (games) on a separate line using for loop and print the output in a
vertical list.
Evidence 2: Take the screenshot of python shell & script mode both and paste it in your
evidence file.
Evidence 3: Take the screenshot of python shell & script mode both and paste it in your
evidence file.
6. Make a list with the following words: are, we, programming, learning.
7. Arrange and print elements from the list to create the sentence as “we are learning programing”
Evidence 4: Take the screenshot of python shell & script mode both and paste it in your
evidence file.
9. Add the scores 15,24,18,32,12 in the list, the data contained in a list can also be used to perform
calculations.
Evidence 5: Take the screenshot of python shell & script mode both and paste it in your
evidence file.
______________________________