Comments, Escape Sequences & Print Statement | Python
Tutorial - Day #5
We 'll learn Escape Sequence Character & Print Statement in this video. Python interpreter
tries to execute text in Python or any other programming language. Sometimes we want to
have text in the program that does not execute. Python will say "OK! If you need a new line. . .
. . . . . . So you must use Escape Sequence. Character. Comments means "You can add
whatever text you want and I do n't have any business with that'' Python says "Just add a
character like this and this text will become a comment '' What will it become ? A comment ''
If you mark a line as a comment. . . Look , Replit is doing syntax highlighting first , for you. A
comment is a part of the coding file that the programmer does not want to execute Rather
the programmer uses it to either explain a block of code or to avoid the execution of a
specific part of code while testing. The 100 Days Of Code course is the 100 Days of Code
course.
Written the same thing here with example You do n't even need to write the code Just copy
this from here , paste it in your computer and run this And when you 'll do this so look You
wo n't see the error `` this is the single line comment '' Now I 've given an example here you
can also write a comment after a line of code For eg. If you 've written something like this I
'm pasting it. . . . And I 'll tweak it like this. In Replit all the shortcuts of VScode works so
there 's no need for you to be worried. If you want to move the line you should also learn this
shortcut. I 've added Triple double-quote ( `` '' '' '''''' '' '' " " -- " " "") to move a line in a string. An
escape sequence character is a backslash \ followed by the character you want to insert. An
Escape Sequence Character ' ( back-slash ) n ' is a new line character. so it wo n't be able to
parse it That 's why we add new line. character '\ ' + 'n ' they may seem different character
But they are one This is called Escape Sequence. Character ' \ '' ' which produces a single
Double-quote ( `` ) in output.
If I add a single quote in single-quoted string I 've to add 'single-quote' so single-quote will
appear. The Escape Sequence Character character is called separator. After this there 's
another parameter `` end= '' in place of `` end-= '' So what does it mean ? It means if I write
next 'print ' statement And in that statement suppose I write `` print ( `` Harry '' ) And if I run it.
. . So look. You can write anything here and it 'll be printed 'By-default ' is a new line' The
Tutorial - Day #5
We 'll learn Escape Sequence Character & Print Statement in this video. Python interpreter
tries to execute text in Python or any other programming language. Sometimes we want to
have text in the program that does not execute. Python will say "OK! If you need a new line. . .
. . . . . . So you must use Escape Sequence. Character. Comments means "You can add
whatever text you want and I do n't have any business with that'' Python says "Just add a
character like this and this text will become a comment '' What will it become ? A comment ''
If you mark a line as a comment. . . Look , Replit is doing syntax highlighting first , for you. A
comment is a part of the coding file that the programmer does not want to execute Rather
the programmer uses it to either explain a block of code or to avoid the execution of a
specific part of code while testing. The 100 Days Of Code course is the 100 Days of Code
course.
Written the same thing here with example You do n't even need to write the code Just copy
this from here , paste it in your computer and run this And when you 'll do this so look You
wo n't see the error `` this is the single line comment '' Now I 've given an example here you
can also write a comment after a line of code For eg. If you 've written something like this I
'm pasting it. . . . And I 'll tweak it like this. In Replit all the shortcuts of VScode works so
there 's no need for you to be worried. If you want to move the line you should also learn this
shortcut. I 've added Triple double-quote ( `` '' '' '''''' '' '' " " -- " " "") to move a line in a string. An
escape sequence character is a backslash \ followed by the character you want to insert. An
Escape Sequence Character ' ( back-slash ) n ' is a new line character. so it wo n't be able to
parse it That 's why we add new line. character '\ ' + 'n ' they may seem different character
But they are one This is called Escape Sequence. Character ' \ '' ' which produces a single
Double-quote ( `` ) in output.
If I add a single quote in single-quoted string I 've to add 'single-quote' so single-quote will
appear. The Escape Sequence Character character is called separator. After this there 's
another parameter `` end= '' in place of `` end-= '' So what does it mean ? It means if I write
next 'print ' statement And in that statement suppose I write `` print ( `` Harry '' ) And if I run it.
. . So look. You can write anything here and it 'll be printed 'By-default ' is a new line' The