0% found this document useful (0 votes)
9 views2 pages

Python Learning: Tuples & Progress Notes

The document outlines the author's progress in learning Python, detailing completed topics such as functions, loops, and strings, with tuples currently being studied. It includes notes on tuples, their properties, and methods, along with exercises to reinforce learning. The author has completed all beginner-level foundations and is tracking their ongoing Python learning journey.
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)
9 views2 pages

Python Learning: Tuples & Progress Notes

The document outlines the author's progress in learning Python, detailing completed topics such as functions, loops, and strings, with tuples currently being studied. It includes notes on tuples, their properties, and methods, along with exercises to reinforce learning. The author has completed all beginner-level foundations and is tracking their ongoing Python learning journey.
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

Python Learning Progress & Notes

Completed Topics

• ✅ Functions
• ✅ For Loops
• ✅ While Loops
• ✅ If/Elif/Else (Control Flow)
• ✅ Comparison Operators
• ✅ Logical Operators
• ✅ Increment Operator (i += 1)
• ✅ Lists (Basics + Exercises)
• ✅ Strings (Methods, Practice Exercises)

Current Topic

• 📌 Tuples (in progress)

Tuples Notes

• Tuples are ordered, immutable collections.


• Created using parentheses () .
• Example: my_tuple = (1, 2, 3)
• You cannot change (add/remove) elements after creation.
• They allow duplicate values.
• You can access items with indexing: my_tuple[0] → 1
• Useful when you want data to stay constant.

Tuple Methods: - count(value) → returns how many times a value appears. - index(value) →
returns the index of the first occurrence.

Tuple Exercises

1. Create a tuple with 5 numbers. Print the first and last number.
2. Write a program to find how many times a specific number appears in a tuple.
3. Create a tuple of fruits and print the index of a fruit (e.g., "apple").
4. Try converting a tuple to a list, change an item, then convert back to tuple.

Exercises Covered

Lists - Combine two lists. - Remove duplicates from a list.

Strings - strip(), capitalize(), count(), find() - Practice exercises with hints.

Progress Recap

• You have finished all beginner-level foundations up to Strings.

1
• Currently learning Tuples, which are part of Python’s sequence data types.

This folder will keep track of all Python-related progress, exercises, and notes as you continue learning.

You might also like