0% found this document useful (0 votes)
18 views

Practical 6

The document provides instructions for a practical task on arrays, lists, and tuples in Python. Students are asked to create lists, add and retrieve elements, use loops and functions like len() to work with the data. Screenshots of code and output are required as evidence.

Uploaded by

sameehmuhammed30
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Practical 6

The document provides instructions for a practical task on arrays, lists, and tuples in Python. Students are asked to create lists, add and retrieve elements, use loops and functions like len() to work with the data. Screenshots of code and output are required as evidence.

Uploaded by

sameehmuhammed30
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Pakistan International School Jeddah - English Section

Y8-Computing
Unit 9.1: Presenting choices: Combining Constructs
Unit :9.6: An array of skills

Practical Task 6 Total Marks: 20

Name: Student ID: Y8 -____

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. Open the IDLE python from your computer.

2. Make a game-list array with three items:

1. drive master 3D

2. subway surfers

3. Tic Tac Toe

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.

Y8-Computing 2023-24 Practical 6 Page 1 of 2


5. Find out the total number of games in the list using len() function and print the output.

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.

8. Create a new program in IDLE python.

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.

10. Make a program to add 24 and 32 to give the output 56

11. Make a program to subtract 12 from 32 to give the output 20

Evidence 5: Take the screenshot of python shell & script mode both and paste it in your
evidence file.

12. Save your Evidence file and print your document.

______________________________

Y8-Computing 2023-24 Practical 6 Page 2 of 2

You might also like