[Python #2] create e10.py
This commit is contained in:
parent
4a11b01520
commit
63052676fc
2 changed files with 18 additions and 0 deletions
16
kjg/python-the-hard-way/e10.py
Normal file
16
kjg/python-the-hard-way/e10.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
'''
|
||||
|
||||
print(tabby_cat)
|
||||
print(persian_cat)
|
||||
print(backslash_cat)
|
||||
print(fat_cat)
|
||||
print("\u1234")
|
|
@ -71,3 +71,5 @@ Cheese Burger
|
|||
learn about a more complicated formatting of a string. {}
|
||||
**** ex9
|
||||
how to print for multiline or nextline
|
||||
**** ex10
|
||||
how to use \ (using special chracter)
|
||||
|
|
Loading…
Reference in a new issue