Comments in python
import os
#hary 7
print(os.listdir(), "\n\n")
'''This is a comment
Author: AMAN
Date: 27 November 2020
Multi-line comment ends here
'''
print("Main code started")
#Now I will write my code here:
# print statement for printing strings
print("AMAN is a programmer", end=" ")
# Print statement with a literal
print("sum is ", end=" ")
print(1+87)
#This will print "AMAN is a programmer**88" on the screen
#Please dont remove this line
"""
This is a
Multiline Comment
"""
"""
This is a comment
"""
# print("Subscribe CodeWithAMAN now","Bhai video bhi like kar dena")
# print("next line")
# print("C:\'narry")
print("AMAN is \n good boy \t1") #comment after statement
# Escape Sequences Description
# \n Inserts a new line in the text at the point
# \\ Inserts a backslash character in the text at the point
# \" Inserts a double quote character in the text at that point
# \' Inserts a single quote character in the text at that point
# \t Inserts a tab in the text at that point
# \f Inserts a form feed ln the text at that point
# \r Inserts a carriage return in the text at that point
# \b Inserts a backspace in the text at that point
Comments
Post a Comment