filmov
tv
String indexing in Python is easy ✂️
Показать описание
#python #tutorial #course
00:00:00 string indexing
00:05:17 last 4 digits exercise
00:06:27 reverse a string exercise
00:07:06 conclusion
# indexing = accessing elements of a sequence using [] (indexing operator)
# [start : end : step]
credit_number = "1234-5678-9012-3456"
print(credit_number[0])
print(credit_number[0:4])
print(credit_number[:4])
print(credit_number[4:8])
print(credit_number[4:])
print(credit_number[-1])
print(credit_number[-4:])
print(credit_number[::2])
print(credit_number[::3])
# EXERCISE 1
credit_number = "1234-5678-9012-3456"
# last_digits = credit_number[-4:]
# print(f"XXXX-XXXX-XXXX-{last_digits}")
# EXERCISE 2
credit_number = "1234-5678-9012-3456"
credit_number = credit_number[::-1]
print(credit_number)
00:00:00 string indexing
00:05:17 last 4 digits exercise
00:06:27 reverse a string exercise
00:07:06 conclusion
# indexing = accessing elements of a sequence using [] (indexing operator)
# [start : end : step]
credit_number = "1234-5678-9012-3456"
print(credit_number[0])
print(credit_number[0:4])
print(credit_number[:4])
print(credit_number[4:8])
print(credit_number[4:])
print(credit_number[-1])
print(credit_number[-4:])
print(credit_number[::2])
print(credit_number[::3])
# EXERCISE 1
credit_number = "1234-5678-9012-3456"
# last_digits = credit_number[-4:]
# print(f"XXXX-XXXX-XXXX-{last_digits}")
# EXERCISE 2
credit_number = "1234-5678-9012-3456"
credit_number = credit_number[::-1]
print(credit_number)
String indexing in Python is easy ✂️
String Slicing || Start : Stop : Step Index || What? How? || Python Tutorial for Beginners
Indexing and Slicing Python Lists for Beginners
Substrings and Index of Strings in Python - Python Tutorial
Python string slicing ✂️
Learn Python in Arabic #012 - Strings - Indexing And Slicing
Strings Slicing and Operations on Strings in Python | Python Tutorial - Day #12
Accessing String Characters in Python
Python Live Stream 10 hours part 204
Strings - Indexing & Slicing | Lecture 4 | Python Full Course For Beginners
String Slicing in Python (Part 1)
Python Tutorial: Slicing Lists and Strings
String methods in Python are easy 〰️
Python indexing 📑
Python String Slicing Examples with For Loops | Tutorial
Python Tutorial : Strings
Beginner Python Tutorial 58 - for Loop with Index
Python Strings | Indexing | Python for Beginners (2024)
Accessing Substrings from a String | Indexing and Slicing in Python Strings | Part 2
Python Tutorial for Beginners 2: Strings - Working with Textual Data
PYTHON : Insert some string into given string at given index in Python
ALL 47 STRING METHODS IN PYTHON EXPLAINED
Fix Python Index Error: List Index Out of Range | Python Tutorials for Beginners #lec36
String Functions in Python-Find, Index, Isalpha, Isdigit & Isalnum Functions in Python
Комментарии