python for beginners | python full course

Publié le: 03 octobre 2023
sur la chaîne: Krishna The Maker
No
0

In Python, strings are sequences of characters. They can be created using single or double quotes, and can be manipulated using various built-in functions. Here are some common string operations in Python:

Concatenation: You can concatenate two or more strings using the `+` operator. For example, `str1 + " " + str2` creates a new string that combines the two given strings.
Substring extraction: You can extract a substring from a string using indexing. For example, `str = "Hello, world!"` and `substring = str[7:11]` extracts the substring "world!" from the string `str`.
String formatting: You can format strings using the `%` operator. For example, `str1 = "The current date is %s" % current_date` creates a new string that contains the current date.
String methods: Python provides several built-in methods for working with strings, such as `lower()`, `upper()`, `strip()`, `replace()`, and `len()`.
String literals: You can use triple quotes (`"""` or `""""`) to create a raw string literal that preserves the string's line breaks and other characters.

🚀 Welcome to the Ultimate Python Journey with KGrebel_official !! 🌐
🌐 Connect and Engage:
Got questions? Looking for coding support or just want to connect with fellow learners? Join our vibrant community on Telegram - https://t.me/+9FT6frCMfXw5Mzc1 .

Full Stack Web Development Tutorials in Hindi Playlist
   • Full Stack Web Development  

• ✅ Full stack web development Hindi Tutorials

Official Website
-------

Follow us on Facebook
-----------------

Follow us on Twitter
-------

#Python, #PythonTutorials, #PythonProgramming


Sur cette page du site, vous pouvez voir la vidéo en ligne python for beginners | python full course durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Krishna The Maker 03 octobre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée No fois et il a aimé 0 téléspectateurs. Bon visionnage!