ungleich-learning-circle/youngjin.han/python-the-hard-way/ex10.py

30 lines
454 B
Python
Raw Normal View History

2020-05-20 13:00:32 +00:00
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)