python the hard way ex upto ex13
This commit is contained in:
parent
dab9fe5912
commit
ed8222535a
7 changed files with 68 additions and 0 deletions
16
sami/learn-python-the-hard-way/ex10.py
Normal file
16
sami/learn-python-the-hard-way/ex10.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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue