diff --git a/kjg/python-the-hard-way/e10.py b/kjg/python-the-hard-way/e10.py new file mode 100644 index 0000000..fe56c91 --- /dev/null +++ b/kjg/python-the-hard-way/e10.py @@ -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") diff --git a/kjg/python.org b/kjg/python.org index 13a8b64..5a6d49f 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -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)