-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex10.py
More file actions
33 lines (29 loc) · 1011 Bytes
/
ex10.py
File metadata and controls
33 lines (29 loc) · 1011 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
28
29
30
31
32
33
tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backlash_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat Food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print(tabby_cat)
print(persian_cat)
print(backlash_cat)
print(fat_cat)
#Escape What it does.
#\\ Backslash (\)
#\' Single- quote (')
#\" Double- quote (")
#\a ASCII bell (BEL)
#\b ASCII backspace (BS)
#\f ASCII formfeed (FF)
#\n ASCII linefeed (LF)
#\N{name} Character named name in the Unicode database (Unicode only)
#\r ASCII carriage return (CR)
#\t ASCII horizontal tab (TAB)
#\uxxxx Character with 16- bit hex value xxxx (Unicode only)
#\Uxxxxxxxx Character with 32- bit hex value xxxxxxxx (Unicode only)
#\v ASCII vertical tab (VT)
#\ooo Character with octal value oo
#\xhh Character with hex value hh