Tutorial - Day #5
CodeWithHarry
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