Skip to content

About

Python learning journey with Jupyter notebooks covering strings, tuples, core concepts, and hands-on coding practice.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🐍 Strings & Tuples in Python

Small concepts. Hands-on practice. Stronger Python foundations.
A beginner-friendly notebook exploring two essential Python data types through code examples.

Python Jupyter Notebook Strings and Tuples Learning by doing


✨ About This Notebook

This is part of my Python learning journey, focused on understanding how strings and tuples work in Python. The notebook uses practical code exercises to explore text operations, element access, slicing, and combining values.

The goal is simple: learn the fundamentals by writing and running code.

🧭 What’s Inside?

🧵 Strings

  • String concatenation
  • Indexing and slicing
  • Reversing a string with slicing
  • Built-in methods: upper(), lower(), capitalize()
  • Counting characters with count()
  • Replacing text with replace()

📦 Tuples

  • Creating and accessing tuple elements
  • Tuple indexing and slicing
  • Concatenating tuples with +
  • Repeating tuple values with *

💻 Quick Preview

String operations

text = "Python Programming"

print(text.upper())
print(text.lower())
print(text[::-1])
print(text.count("m"))
print(text.replace("Python", "Learning"))

Tuple operations

first = (1, 2, 3)
second = (4, 5)

print(first + second)  # Concatenation
print(first * 2)       # Repetition
print(first[0])        # Indexing
print(first[1:])       # Slicing

🎯 Learning Goals

  • Understand common string operations and built-in methods.
  • Practise indexing and slicing to retrieve specific parts of a sequence.
  • Learn how tuples can be combined, repeated, and accessed.
  • Build confidence with Python syntax through small exercises.

🏷️ Repository Topics

python · jupyter-notebook · python-basics · strings · tuples · programming-practice · beginner-friendly · learning-python

🛠️ Tools Used

Python Jupyter

🚀 Run the Notebook

  1. Open the .ipynb notebook in Jupyter Notebook, JupyterLab, or Google Colab.
  2. Run each cell from top to bottom.
  3. Modify the examples and experiment with different inputs.
  4. Observe the output to understand each operation.

🌱 Key Takeaway

Strings help us work with text, while tuples let us store ordered collections of values. Practising their operations builds a useful foundation for more advanced Python programming.


👩‍💻 About Me

I’m building my Python skills step by step through practical exercises and continuous learning.

Behind every line of code is an opportunity to learn something new.

Thanks for visiting! ⭐ Keep learning, keep coding.

About

Python learning journey with Jupyter notebooks covering strings, tuples, core concepts, and hands-on coding practice.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages