Comments, Escape Sequences
&
Print Statement
Comments - These are utilized to compose something which the software engineer would rather not execute. It tends to be composed to stamp the writer's name, date when the program is composed, add notes for your future self, and so forth.
These are utilized to make the code more justifiable for the developer. The Interpreter doesn't execute comments.
Single Line Comment -
- These are the remarks which are written in a solitary line, i.e., they consume the space of a solitary line.
- We use # (hash/pound) to compose single-line remarks.
Multi-Line Comment -
- These are the remarks which are made by utilizing numerous lines, i.e., they involve more than one line in a program.
- We use ' ' '...Comments...' ' ' or " " "...Comments..." " " for composing multi-line comments in Python.
Python Print() Statement -
- It is a capacity in Python that permits us to show whatever is composed inside it. If an activity is provided to print, the worth of the articulation after the assessment is imprinted in the terminal.
end -
- This contention permits us to put something toward the stopping point after it is printed.
- It permits us to proceed with the line with " " or ',' or anything we need to put inside these statements of the end.
- It joins two distinctive print proclamations utilizing some string or even by space.
Escape Sequences -
- It is an arrangement of characters that addresses a solitary person.
- It doesn't address itself when utilized inside string exacting or character.
- It is made out of at least two characters beginning with oblique punctuation line \ yet goes about as a solitary person.
0 Comments