Learning Circle : python #2 - ex10
This commit is contained in:
parent
48671bd220
commit
64bc3ef9f2
1 changed files with 29 additions and 0 deletions
29
youngjin.han/python-the-hard-way/ex10.py
Normal file
29
youngjin.han/python-the-hard-way/ex10.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
tabby_cat = "\tI'm tabbed in."
|
||||
persian_cat = "I'm split\non a line."
|
||||
backslash_cat = "I'm \\ a \\ cat."
|
||||
|
||||
fat_cat = """
|
||||
I'll do a list:
|
||||
\t* Cat food
|
||||
\t* Fishies
|
||||
\t* Catnip\n\t* Grass
|
||||
"""
|
||||
|
||||
fat_cat_single = '''
|
||||
I'll do a list:
|
||||
\t* Cat food
|
||||
\t* Fishies
|
||||
\t* Catnip\n\t* Grass
|
||||
'''
|
||||
|
||||
new_test = """
|
||||
\t tap \a BELL \r CR \f FF
|
||||
\\ \u0032 \U00000033
|
||||
"""
|
||||
|
||||
print(tabby_cat)
|
||||
print(persian_cat)
|
||||
print(backslash_cat)
|
||||
print(fat_cat)
|
||||
print(fat_cat_single)
|
||||
print(new_test)
|
Loading…
Reference in a new issue