RUVIDEO
Поделитесь видео 🙏

Basic Python 34: Python Strings смотреть онлайн

Python Strings:
A string is a sequence of characters.
A character is simply a symbol. For example, the English language has 26 characters.
Computers do not deal with characters, they deal with numbers (binary). Even though you may see characters on your screen, internally it is stored and manipulated as a combination of 0s and 1s.

This conversion of character to a number is called encoding, and the reverse process is decoding. ASCII and Unicode are some of the popular encodings used.

In Python, a string is a sequence of Unicode characters. Unicode was introduced to include every character in all languages and bring uniformity in encoding.
How to create a string in Python
single quote or double-quotes. Even triple quotes can be used in Python
How to access characters in a string:
We can access individual characters using indexing and a range of characters using slicing. Index starts from 0. Trying to access a character out of index range will raise an IndexError. The index must be an integer. We can't use floats or other types, this will result into TypeError.
Python allows negative indexing for its sequences.
The index of -1 refers to the last item, -2 to the second last item and so on. We can access a range of items in a string by using the slicing operator :(colon).

If we try to access an index out of the range or use numbers other than an integer, we will get errors.
If we want to access a range, we need the index that will slice the portion from the string.
How to change or delete a string?

Strings are immutable. This means that elements of a string cannot be changed once they have been assigned. We can simply reassign different strings to the same name.

We cannot delete or remove characters from a string. But deleting the string entirely is possible using the del keyword.

Concatenation of Two or More Strings:
Joining of two or more strings into a single one is called concatenation.
The + operator does this in Python. Simply writing two string literals together also concatenates them.

The * operator can be used to repeat the string for a given number of times.

Iterating Through a string:

String Membership Test:
We can test if a substring exists within a string or not, using the keyword in.
Common Python String Methods:
Some of the commonly used methods are lower(), upper(), join(), split(), find(), replace() etc.
Python String Formatting:

If we want to print a text like He said, "What's there?", we can neither use single quotes nor double quotes. This will result in a SyntaxError as the text itself contains both single and double quotes.
ex:
print("He said, "What's there?"")

print('He said, "What's there?"')

One way to get around this problem is to use triple quotes. Alternatively, we can use escape sequences.

An escape sequence starts with a backslash and is interpreted differently. If we use a single quote to represent a string, all the single quotes inside the string must be escaped. Similar is the case with double quotes. Here is how it can be done to represent the above text.

API Automation
➡️ Rest Assured Using Java → https://youtube.com/playlist?list=PLQKDzuA2cCjrxlZkE8e_NOeQFJQXRHp0n
➡️ Karate Framework using Maven → https://youtube.com/playlist?list=PLQKDzuA2cCjoWKMw8bpnOlr70PNSVdkf6
Programing Language
Basic Python → https://youtube.com/playlist?list=PLQKDzuA2cCjp-gnUFFPvXcMllAlfVPph5
➡️ Core Java → https://youtube.com/playlist?list=PLQKDzuA2cCjod85qsWBGR-25onbE1GH_i
Performances Testing
➡️ JMeter Beginner → https://youtube.com/playlist?list=PLQKDzuA2cCjrukNp3JNCTnKi89C9CiFz8
➡️ Locust Beginner → https://youtube.com/playlist?list=PLQKDzuA2cCjptRRRUWyLZoaeVuoctG35L
Git and GitHub
➡️ Git and GitHub Beginner → https://youtube.com/playlist?list=PLQKDzuA2cCjrsvfgzsVajJVqj7rck7X2q
Manual Testing
➡️ Manual Testing → https://youtube.com/playlist?list=PLQKDzuA2cCjovVbXzK8QiVeZamz-lLW0-
Automation Testing
➡️ Selenium Cucumber Framework using Java → https://youtube.com/playlist?list=PLQKDzuA2cCjpsMVO0Cj_JIDURpJSzVcmn
➡️ Robot Framework with Python → https://youtube.com/playlist?list=PLQKDzuA2cCjrVs8t8_b4LTguHA1XGTZI_
➡️ Beginner Karate Framework using Intellij → https://youtube.com/playlist?list=PLQKDzuA2cCjqUiNSoEtGJSAuDYvleZcpQ
➡️ Karate Framework with Gradle using eclipse → https://youtube.com/playlist?list=PLQKDzuA2cCjo_VayskAv-1qnUg1b2mjWi
➡️ Basic Selenium WebDriver using Java → https://youtube.com/playlist?list=PLQKDzuA2cCjpEL8xZFg6I1TOcerxKh0nX
➡️ TestNG Framework → https://youtube.com/playlist?list=PLQKDzuA2cCjoKVdgCDCuCnUMFv-9jZ2cr
➡️ Robot Framework with RIDE → https://youtube.com/playlist?list=PLQKDzuA2cCjqmT4GambzrUjtLfEkXmMzw
_________________ Beginner Jenkins _____________________
➡️ Beginner Jenkins → https://youtube.com/playlist?list=PLQKDzuA2cCjrwNyMgYffggbTMoNrtwpGk

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Basic Python 34: Python Strings» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.