Comments, Print Statement, and Escape Sequences in Python | Beginners Mate Python | #7

Опубликовано: 09 Апрель 2026
на канале: GujaratiMaCoding
1,601
47

print() function:
The print() function prints the specified message to the screen, or other standard output device.

The message can be a string or any other object, the object will be converted into a string before written to the screen.

Comments in Python:
Comments can be used to explain Python code.

Comments can be used to make the code more readable.

Comments can be used to prevent execution when testing code.

Comments starts with a #, and Python will ignore them

Escape Sequences:
To insert characters that are illegal in a string, use an escape character.

An escape character is a backslash \ followed by the character you want to insert.

Beginners Mate Python Playlist:   • Beginners Mate Python in Gujarati | Gujara...  

Connect with me on:
LinkedIn
Facebook
Github
Instagram