How to Code PYTHON: Format String Literals - Manipulate and Format String Data for Display in Pytho смотреть онлайн
Let's get started! ??? In this video, we will show you how to write a few PYTHON ? scripts that compare literal strings defined by using single and double quotation marks, use quotes inside other quotes, use escape sequences, use multi-line strings, and format string by using the print() function. In this lesson, you will learn some basics in about 10 minutes!
In this video, you will learn how to :
★ 0:11 Define a literal string with a set of single-quote (') or double-quote (") symbols.
★ 3:08 Use a special character inside a string by adding an escape sequence (a back slash), such as a single-quote escape sequence (\'), double-quote escape sequence (\"), a new line escape sequence (\n), or a tab escape sequence (\t).
★ 7:02 Define a multi-line verbatim string with a set of three single-quote characters (''') or a set of three double-quote characters (""").
★ 9:06 Use different versions of the print() function to concatenate a variable number of strings sent as arguments into the function as well as specifying a character to separate each argument.
Tips and Tricks:
► There is no difference in single or double quoted string. However, we should pick one and use it consistently.
► Be aware of special characters in a string and add a backslash as an escape sequence.
► Use new line and tab escape sequences to format long strings such as introductions and instructions.
► Multi-line verbatim is a type of multi-line string that retains the formatting as typed.
► Keep your code clean when concatenating strings by using the built-in feature of the print() function.
WANT MORE PYTHON TUTORIALS?
? Python Coding for Beginners:
https://www.youtube.com/playlist?list=PLYnuuwG097TxI0viOUfWD7sx_D_wRsGbo
For the setup, please read the followings before you begin:
1. Download latest Python: https://www.python.org/downloads/
2. Install Python and remember to select "Add Python... to PATH" when asked.
3. Download and install latest Visual Studio Code: https://code.visualstudio.com/Download
4. Install the Python extension for Visual Studio Code: Go to View and select Extensions, or select the Extensions icon, then search for python.
Python - a programming language used by world-class companies such as Amazon.com, Alphabet (Google), Facebook, Twitter, and NASA.
? SUBSCRIBE TO CODING WITH KIDS ?????? YOUTUBE CHANNEL NOW ?
https://www.youtube.com/channel/UCsPTo-vWxs0uBa2ZdPd9Y_Q?sub_confirmation=1
#CodingWithKids #PythonProgramming #PythonForBeginners
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Code PYTHON: Format String Literals - Manipulate and Format String Data for Display in Pytho» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.