0% found this document useful (0 votes)
33 views1 page

Activity 1 Cpe 401

Uploaded by

23-00065
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Activity 1 Cpe 401

Uploaded by

23-00065
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Republic of the Philippines

BATANGAS STATE UNIVERSITY


The National Engineering University
Alangilan Campus
Golden Country Homes, Alangilan Batangas City, Batangas, Philippines 4200
Tel Nos.: (+63 43) 425-0139 local 2121 / 2221
E-mail Address: [email protected] | Website Address: http://www.batstate-u.edu.ph

Department of ____________ Engineering

ACTIVITY I: Data Type Familiarization

Familiarize yourself with common operations and methods associated with each data structure.
1. Activity 1: List Manipulation:
● Task: Write Python code to perform the following operations on lists:
● Create a list of anything related to your program. (6 items)
● Add a new item on to the list.
● Remove an item on the list.
● Edit the item in index 0
● Print the modified list.
2. Activity 2: Dictionary Practice:
● Task: Create a Python dictionary of terms you usually encounter in your program courses: (6
terms)
● Add/update your dictionary
● Remove an item to your dictionary
● Print your dictionary
3. Activity 3: Set Operations:
● Task: Perform set operations on two sets of numbers:
● Create two sets of numbers.
● Find the union, intersection, and difference between the sets.
● Print the results.
4. Activity 4: String Manipulation:
● Task: Perform string operations to manipulate text:
● Create a string containing a sentence or phrase.
● Convert the string to uppercase and print it.
● Find the length of the string.
● Print the list.
5. Reflection:
● Print your reflection about the activity. Identify areas of improvement, discuss any challenges you
encountered and how they were overcome. Summarize the key learnings from practicing with
Python data structures and strings.
Additional Notes:
● Feel free to collaborate with peers or seek assistance if needed.
● Experiment with different scenarios and data to enhance your understanding.
● Have fun exploring the versatility of Python's data structures and strings!

Paste your code here use comments to properly document your program.

Leading Innovations, Transforming Lives, Building the Nation

You might also like