-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathescape_sequence.py
More file actions
30 lines (21 loc) · 924 Bytes
/
Copy pathescape_sequence.py
File metadata and controls
30 lines (21 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Sequence of character after backslash "\" --> escape sequence character ..
# scape sequence character comprise of more than one character but represent one character when used within the string ..
# example :- \n --> for new line, \t --> space for tab, \' --> singlequote, \\ --> backslash ..
# create a str ..
# use next line escape sequence --> \n
nxt_line = "sumit is a good\ncoder & designer also"
print(nxt_line)
#use sapace for tab --> \t
tab_space = "hello \twe are coder's right?"
print(tab_space)
# use double quote in sentence use "\"...\""
double_space = "hey \"sumit\" how are you?"
print(double_space)
# use single quote '\'....\''
single_quote = 'now we are understand about \'single\' quote'
print(single_quote)
# agr slash ka use krna h tab \\ ka use kro ..
slash_use = "we are use \\ for understanding!"
print(slash_use)
# ye code se bahar ka line h jo end me aata h!
print("code will ending..")