[Python #2] create e10.py
This commit is contained in:
parent
4a11b01520
commit
63052676fc
|
@ -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. {}
|
learn about a more complicated formatting of a string. {}
|
||||||
**** ex9
|
**** ex9
|
||||||
how to print for multiline or nextline
|
how to print for multiline or nextline
|
||||||
|
**** ex10
|
||||||
|
how to use \ (using special chracter)
|
||||||
|
|
Loading…
Reference in New Issue