filmov
tv
Python Programming: Lesson 3 - Delimiters, Escape Sequences, and Strings

Показать описание
PLEASE SUBSCRIBE!!!
We've started our Python exploration with 3 videos - downloading PyCharm, printing statements (and comments), and arithmetic expressions:
There are 2 types of delimiters to be familiar with
print( ' sup \'Nally\'') prints sup 'Nally'
print( "The \"book\"" ) prints The "book"
There are 2 types of escape sequences to be familiar with
print( " \n " ) prints a new blank line (in addition to going to the next one)
print( "\t" ) prints a new tab, 4 spaces
Use """, 3 pairs of double quotes, at the beginning and end of a string to make it a multi-line string that you can print.
To concatenate two strings, we can write "butter" + "fly" to get "butterfly". We can also write "co" * 2 to get "coco".
0:39 Review of Printing Statements and Comments
2:16 Review of Arithmetic Expressions
7:23 NEW: Delimiters
10:06 NEW: Escape Sequences
13:02 NEW: Multi-line Strings
14:27 NEW: Concatenation of Strings
Thanks for watching, and PLEASE SUBSCRIBE!!!
We've started our Python exploration with 3 videos - downloading PyCharm, printing statements (and comments), and arithmetic expressions:
There are 2 types of delimiters to be familiar with
print( ' sup \'Nally\'') prints sup 'Nally'
print( "The \"book\"" ) prints The "book"
There are 2 types of escape sequences to be familiar with
print( " \n " ) prints a new blank line (in addition to going to the next one)
print( "\t" ) prints a new tab, 4 spaces
Use """, 3 pairs of double quotes, at the beginning and end of a string to make it a multi-line string that you can print.
To concatenate two strings, we can write "butter" + "fly" to get "butterfly". We can also write "co" * 2 to get "coco".
0:39 Review of Printing Statements and Comments
2:16 Review of Arithmetic Expressions
7:23 NEW: Delimiters
10:06 NEW: Escape Sequences
13:02 NEW: Multi-line Strings
14:27 NEW: Concatenation of Strings
Thanks for watching, and PLEASE SUBSCRIBE!!!