[Python #2] create e10.py

This commit is contained in:
kjg 2020-05-20 21:46:08 +09:00
parent 4a11b01520
commit 63052676fc
2 changed files with 18 additions and 0 deletions

View 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")

View File

@ -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)