Activity 1 Cpe 401
Activity 1 Cpe 401
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.