Python Tutorial for Beginners #3 - String Operations (Methods, Slicing, f-strings)

12views
1likes
0
5:20
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn Python string operations in this beginner-friendly tutorial! šŸ“ In this lesson, you will learn: āœ… Creating strings with single and double quotes āœ… String concatenation and repetition āœ… F-strings for easy formatting āœ… String methods: upper, lower, strip, split, join āœ… Indexing and slicing strings šŸ• Timestamps: 0:00 - Introduction 0:22 - Creating Strings Explained 0:46 - Creating Strings Demo 1:51 - String Methods Explained 2:39 - String Methods Demo 3:50 - Slicing Explained 4:38 - Slicing Demo 5:49 - Recap 6:24 - End šŸ’» Source Code: https://github.com/GoCelesteAI/python_strings šŸ“š Code from this lesson: # String basics greeting = "Hello" name = "World" message = greeting + ", " + name + "!" # f-strings age = 25 print(f"I am {age} years old") # String methods text = " Python Programming " print(text.strip()) print(text.upper()) words = "a,b,c".split(",") rejoined = "-".join(words) # Slicing word = "Python" print(word[0]) # P print(word[-1]) # n print(word[0:3]) # Pyt print(word[::-1]) # nohtyP šŸ”— Previous: Lesson 2 - Variables & Data Types šŸ”— Next: Lesson 4 - Numbers & Math #Python #PythonTutorial #LearnPython #Programming #Strings #StringMethods
Back to tutorials

Duration

5:20

Published

January 24, 2026

Added to Codegiz

March 15, 2026

Open in YouTube