From 64bc3ef9f20847cc91eece5826cae554e4608dfa Mon Sep 17 00:00:00 2001 From: Youngjin Han Date: Wed, 20 May 2020 22:00:32 +0900 Subject: [PATCH] Learning Circle : python #2 - ex10 --- youngjin.han/python-the-hard-way/ex10.py | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 youngjin.han/python-the-hard-way/ex10.py diff --git a/youngjin.han/python-the-hard-way/ex10.py b/youngjin.han/python-the-hard-way/ex10.py new file mode 100644 index 0000000..a8395e7 --- /dev/null +++ b/youngjin.han/python-the-hard-way/ex10.py @@ -0,0 +1,29 @@ +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)